Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jan 7, 2025
1 parent 957e59e commit 38eb43e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
22 changes: 10 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
"engines": {
"node": ">=18.16.0"
},
"main": "./build/index.js",
"type": "module",
"files": [
"build",
"!build/tests",
"!build/tests_helpers"
"!build/tests"
],
"exports": {
".": "./build/index.js",
Expand All @@ -35,12 +33,12 @@
"@adonisjs/eslint-config": "^2.0.0-beta.7",
"@adonisjs/prettier-config": "^1.4.0",
"@adonisjs/tsconfig": "^1.4.0",
"@japa/errors-printer": "^3.0.4",
"@japa/runner": "^3.1.4",
"@release-it/conventional-changelog": "^9.0.3",
"@swc/core": "^1.10.1",
"@japa/errors-printer": "^4.0.0",
"@japa/runner": "^4.0.0",
"@release-it/conventional-changelog": "^9.0.4",
"@swc/core": "^1.10.4",
"@types/luxon": "^3.4.2",
"@types/node": "^22.10.2",
"@types/node": "^22.10.5",
"c8": "^10.1.3",
"cross-env": "^7.0.3",
"del-cli": "^6.0.0",
Expand All @@ -54,16 +52,14 @@
"typescript": "^5.7.2"
},
"dependencies": {
"@poppinss/macroable": "^1.0.3",
"@poppinss/macroable": "^1.0.4",
"@types/chai": "^5.0.1",
"assertion-error": "^2.0.1",
"chai": "^5.1.2"
},
"peerDependencies": {
"@japa/runner": "^3.1.2"
"@japa/runner": "^3.1.2 || ^4.0.0"
},
"author": "virk,japa",
"license": "MIT",
"homepage": "https://github.com/japa/assert#readme",
"repository": {
"type": "git",
Expand All @@ -77,6 +73,8 @@
"chai",
"japa"
],
"author": "Harminder Virk <[email protected]>",
"license": "MIT",
"publishConfig": {
"access": "public",
"provenance": true
Expand Down
2 changes: 1 addition & 1 deletion tests/assert/assert.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import { test } from 'node:test'
import { DateTime } from 'luxon'
import { Assert } from '../../src/assert.js'
import { expectError, expectAsyncError } from '../../tests_helpers/index.js'
import { expectError, expectAsyncError } from '../helpers.js'

/**
* Tests in this file is a copy of
Expand Down
2 changes: 1 addition & 1 deletion tests/assert/assert_subset.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import { before, test } from 'node:test'
import { Assert } from '../../src/assert.js'
import { expectError } from '../../tests_helpers/index.js'
import { expectError } from '../helpers.js'

/**
* Tests are copied from https://raw.githubusercontent.com/debitoor/chai-subset/master/test/unit/chai-subset.spec.js.
Expand Down
2 changes: 1 addition & 1 deletion tests_helpers/index.ts → tests/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
*/

import * as chai from 'chai'
import { ErrorsPrinter } from '@japa/errors-printer'
import { AssertionError } from 'assertion-error'
import { ErrorsPrinter } from '@japa/errors-printer'

export async function wrapAssertions(fn: () => void | Promise<void>) {
try {
Expand Down
2 changes: 1 addition & 1 deletion tests/plugin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { TestContext, Test, Emitter, Refiner } from '@japa/runner/core'

import { assert } from '../index.js'
import { Assert } from '../src/assert.js'
import { wrapAssertions } from '../tests_helpers/index.js'
import { wrapAssertions } from './helpers.js'

test.describe('Plugin', () => {
test('add assert property to test context', async () => {
Expand Down

0 comments on commit 38eb43e

Please sign in to comment.