test-drive
Advanced tools
Comparing version 1.6.0 to 2.0.0
{ | ||
"name": "test-drive", | ||
"version": "1.6.0", | ||
"version": "2.0.0", | ||
"type": "module", | ||
"description": "Opinionated library for writing web component tests", | ||
"main": "./cjs/index.js", | ||
"module": "./esm/index.js", | ||
"types": "./esm/index.d.ts", | ||
"exports": { | ||
".": "./dist/index.js", | ||
"./package.json": "./package.json" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf ./cjs ./esm", | ||
"clean": "rimraf ./dist", | ||
"prebuild": "npm run clean", | ||
"build": "npm run build:cjs && npm run build:esm", | ||
"build:cjs": "tsc -p tsconfig.build.json --outDir cjs --module commonjs", | ||
"build:esm": "tsc -p tsconfig.build.json --outDir esm --module esnext", | ||
"build": "tsc", | ||
"pretest": "npm run typecheck && npm run lint", | ||
"test": "mocha-web \"./test/**/*.spec.ts\"", | ||
"test": "mocha-web \"./src/test/**/*.spec.ts\"", | ||
"lint": "eslint", | ||
@@ -20,4 +20,4 @@ "typecheck": "tsc --noEmit" | ||
"dependencies": { | ||
"chai": "^4.5.0", | ||
"chai-as-promised": "^7.1.2", | ||
"chai": "^5.1.2", | ||
"chai-as-promised": "^8.0.1", | ||
"chai-dom": "^1.12.0", | ||
@@ -27,32 +27,31 @@ "chai-style": "^1.0.3", | ||
"promise-assist": "^2.0.1", | ||
"sinon": "^19.0.1", | ||
"sinon-chai": "^3.7.0" | ||
"sinon": "^19.0.2", | ||
"sinon-chai": "^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"@eslint/js": "^9.10.0", | ||
"@playwright/browser-chromium": "^1.47.0", | ||
"@types/chai": "^4.3.19", | ||
"@types/chai-as-promised": "^7.1.8", | ||
"@playwright/browser-chromium": "^1.49.1", | ||
"@types/chai": "^5.0.1", | ||
"@types/chai-as-promised": "^8.0.1", | ||
"@types/chai-dom": "^1.11.3", | ||
"@types/chai-style": "^1.0.2", | ||
"@types/dom-matches": "^2.0.2", | ||
"@types/mocha": "^10.0.8", | ||
"@types/mocha": "^10.0.10", | ||
"@types/sinon": "^17.0.3", | ||
"@types/sinon-chai": "^3.2.12", | ||
"esbuild": "^0.23.1", | ||
"eslint": "^9.10.0", | ||
"@types/sinon-chai": "^4.0.0", | ||
"esbuild": "^0.24.0", | ||
"eslint": "^9.17.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-no-only-tests": "^3.3.0", | ||
"mocha": "^10.7.3", | ||
"mocha": "^11.0.1", | ||
"mocha-web": "^2.0.0", | ||
"prettier": "^3.3.3", | ||
"prettier": "^3.4.2", | ||
"rimraf": "^6.0.1", | ||
"typescript": "~5.6.2", | ||
"typescript-eslint": "^8.5.0" | ||
"typescript": "~5.7.2", | ||
"typescript-eslint": "^8.18.0" | ||
}, | ||
"files": [ | ||
"cjs", | ||
"esm", | ||
"dist", | ||
"src", | ||
"matchers.d.ts" | ||
"matchers.d.ts", | ||
"!*/test" | ||
], | ||
@@ -59,0 +58,0 @@ "repository": { |
@@ -5,9 +5,9 @@ // eslint-disable-next-line @typescript-eslint/triple-slash-reference | ||
import sinon from 'sinon'; | ||
import chai from 'chai'; | ||
import * as chai from 'chai'; | ||
import chaiDom from 'chai-dom'; | ||
import isPresent from './is-present'; | ||
import isPresent from './is-present.js'; | ||
import chaiAsPromised from 'chai-as-promised'; | ||
import chaiStyle from 'chai-style'; | ||
import sinonChai from 'sinon-chai'; | ||
import layout from './layout'; | ||
import layout from './layout.js'; | ||
@@ -28,7 +28,7 @@ export * from 'promise-assist'; | ||
export * from './helpers'; | ||
export * from './layout'; | ||
export * from './layout-driver'; | ||
export * from './select-dom'; | ||
export * from './helpers.js'; | ||
export * from './layout.js'; | ||
export * from './layout-driver.js'; | ||
export * from './select-dom.js'; | ||
export { chai, sinon, expect, layout }; |
@@ -1,2 +0,2 @@ | ||
import { isElement } from './helpers'; | ||
import { isElement } from './helpers.js'; | ||
@@ -3,0 +3,0 @@ function isPresent(element: unknown): boolean { |
@@ -1,2 +0,2 @@ | ||
import { isElement } from './helpers'; | ||
import { isElement } from './helpers.js'; | ||
@@ -3,0 +3,0 @@ interface Point { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19
Yes
59351
34
773
1
+ Addedassertion-error@2.0.1(transitive)
+ Addedchai@5.1.2(transitive)
+ Addedchai-as-promised@8.0.1(transitive)
+ Addedcheck-error@2.1.1(transitive)
+ Addeddeep-eql@5.0.2(transitive)
+ Addedloupe@3.1.2(transitive)
+ Addedpathval@2.0.0(transitive)
+ Addedsinon-chai@4.0.0(transitive)
- Removedassertion-error@1.1.0(transitive)
- Removedchai@4.5.0(transitive)
- Removedchai-as-promised@7.1.2(transitive)
- Removedcheck-error@1.0.3(transitive)
- Removeddeep-eql@4.1.4(transitive)
- Removedget-func-name@2.0.2(transitive)
- Removedloupe@2.3.7(transitive)
- Removedpathval@1.1.1(transitive)
- Removedsinon-chai@3.7.0(transitive)
Updatedchai@^5.1.2
Updatedchai-as-promised@^8.0.1
Updatedsinon@^19.0.2
Updatedsinon-chai@^4.0.0