From 38eb43e146dcc3decd6f2125bccd86e174ba452a Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Tue, 7 Jan 2025 16:41:51 +0530 Subject: [PATCH] chore: update dependencies --- package.json | 22 ++++++++++------------ tests/assert/assert.spec.ts | 2 +- tests/assert/assert_subset.spec.ts | 2 +- tests_helpers/index.ts => tests/helpers.ts | 2 +- tests/plugin.spec.ts | 2 +- 5 files changed, 14 insertions(+), 16 deletions(-) rename tests_helpers/index.ts => tests/helpers.ts (100%) diff --git a/package.json b/package.json index ef1bc5e..81c77f0 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", @@ -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", @@ -77,6 +73,8 @@ "chai", "japa" ], + "author": "Harminder Virk ", + "license": "MIT", "publishConfig": { "access": "public", "provenance": true diff --git a/tests/assert/assert.spec.ts b/tests/assert/assert.spec.ts index 1b25252..ca6ffb3 100644 --- a/tests/assert/assert.spec.ts +++ b/tests/assert/assert.spec.ts @@ -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 diff --git a/tests/assert/assert_subset.spec.ts b/tests/assert/assert_subset.spec.ts index 447ade3..edf9fe2 100644 --- a/tests/assert/assert_subset.spec.ts +++ b/tests/assert/assert_subset.spec.ts @@ -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. diff --git a/tests_helpers/index.ts b/tests/helpers.ts similarity index 100% rename from tests_helpers/index.ts rename to tests/helpers.ts index dd4337c..363b39d 100644 --- a/tests_helpers/index.ts +++ b/tests/helpers.ts @@ -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) { try { diff --git a/tests/plugin.spec.ts b/tests/plugin.spec.ts index 7aa0dcb..280a64e 100644 --- a/tests/plugin.spec.ts +++ b/tests/plugin.spec.ts @@ -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 () => {