test-drive-react
Advanced tools
Comparing version 1.4.0 to 2.0.0
{ | ||
"name": "test-drive-react", | ||
"version": "1.4.0", | ||
"version": "2.0.0", | ||
"type": "module", | ||
"description": "Opinionated library for Test-Driven Development of React Components.", | ||
"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", | ||
"typecheck": "tsc --noEmit", | ||
"lint": "eslint", | ||
"pretest": "npm run typecheck && npm run lint", | ||
"test": "mocha-web \"./test/**/*.ts?(x)\"" | ||
"test": "mocha-web \"./src/test/**/*.ts?(x)\"" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=15.5.0", | ||
"react-dom": ">=15.5.0" | ||
"react": ">=17.0.0", | ||
"react-dom": ">=17.0.0" | ||
}, | ||
"dependencies": { | ||
"test-drive": "^1.6.0" | ||
"test-drive": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@eslint/js": "^9.10.0", | ||
"@playwright/browser-chromium": "^1.47.0", | ||
"@types/chai": "^4.3.19", | ||
"@playwright/browser-chromium": "^1.49.1", | ||
"@types/chai": "^5.0.1", | ||
"@types/chai-dom": "^1.11.3", | ||
"@types/mocha": "^10.0.8", | ||
"@types/react": "^18.3.5", | ||
"@types/react-dom": "^18.3.0", | ||
"@types/mocha": "^10.0.10", | ||
"@types/react": "^18.3.13", | ||
"@types/react-dom": "^18.3.1", | ||
"@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", | ||
"eslint-plugin-react": "^7.36.1", | ||
"mocha": "^10.7.3", | ||
"eslint-plugin-react": "^7.37.2", | ||
"mocha": "^11.0.1", | ||
"mocha-web": "^2.0.0", | ||
"prettier": "^3.3.3", | ||
"prettier": "^3.4.2", | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1", | ||
"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", | ||
"src" | ||
"dist", | ||
"src", | ||
"!*/test" | ||
], | ||
@@ -64,3 +63,4 @@ "repository": { | ||
"homepage": "https://github.com/wixplosives/test-drive-react#readme", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"sideEffects": false | ||
} |
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import { selectDom } from 'test-drive'; | ||
import { DriverBase, IDriverConstructor } from './driver-base'; | ||
import { DriverBase, type IDriverConstructor } from './driver-base.js'; | ||
@@ -6,0 +6,0 @@ export interface IRenderingContext<P = {}> { |
export { Simulate } from 'react-dom/test-utils'; | ||
export * from 'test-drive'; | ||
export * from './client-renderer'; | ||
export * from './driver-base'; | ||
export * from './client-renderer.js'; | ||
export * from './driver-base.js'; |
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
21
Yes
19359
18
211
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)
+ Addedtest-drive@2.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)
- Removedtest-drive@1.6.0(transitive)
Updatedtest-drive@^2.0.0