Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

test-drive-react

Package Overview
Dependencies
Maintainers
0
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-drive-react - npm Package Compare versions

Comparing version 1.4.0 to 2.0.0

dist/client-renderer.d.ts

60

package.json
{
"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';
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc