reshow-unit
Version:
Reshow Unit Test Pack
63 lines (62 loc) • 2.25 kB
JSON
{
"version": "0.18.2",
"name": "reshow-unit",
"repository": {
"type": "git",
"url": "https://github.com/react-atomic/reshow",
"directory": "packages/reshow-unit"
},
"homepage": "https://github.com/react-atomic/reshow/tree/main/packages/reshow-unit",
"description": "Reshow Unit Test Pack",
"keywords": [
"@testing-library"
],
"author": "Hill <hill@kimo.com>",
"license": "ISC",
"dependencies": {
"@babel/cli": "^7.x",
"@babel/core": "^7.20.12",
"@testing-library/dom": "^8.20.0",
"@testing-library/react": "^15.x",
"@testing-library/user-event": "^14.x",
"get-object-value": "*",
"get-random-id": "*",
"process": "0.11.10",
"react-test-renderer": "^18.x",
"reshow-build": "*",
"reshow-runtime": "*",
"reshow-unit-dom": "*",
"win-doc": "*"
},
"devDependencies": {
"react": "^18.x",
"react-dom": "^18.x"
},
"exports": {
"types": "./types/index.d.ts",
"require": "./build/cjs/index.js",
"import": "./build/es/index.mjs"
},
"main": "./build/cjs/index.js",
"module": "./build/es/index.mjs",
"scripts": {
"format": "prettier-eslint --write '**/src/**/*.js' '**/ui/**/*.jsx'",
"clean": "find ./build ./types -name '*.*' | xargs rm -rf",
"build:cjs": "BABEL_ENV=cjs babel src -d build/cjs --ignore /**/__tests__ --root-mode upward",
"build:es": "BABEL_ENV=es babel src -d build/es --out-file-extension .mjs --root-mode upward",
"build:type": "npx -p typescript tsc src/*.js --jsx react-jsx --target es6 --moduleResolution node --declaration --allowJs --emitDeclarationOnly --skipLibCheck --declarationDir types",
"build": "npm run clean && npm run build:cjs && npm run build:es && npm run build:type",
"mochaFor": "STRICT_MODE=on mocha -r global-jsdom/register",
"mocha": "npm run mochaFor -- 'build/es/**/__tests__/*.mjs'",
"test:report": "npm run build && npm run mochaFor -- --reporter mocha-junit-reporter --reporter-options mochaFile=./test_output/mocha.xml 'build/es/**/__tests__/*.mjs'",
"test": "npm run build && npm run mocha",
"prepublishOnly": "npm run test"
},
"types": "./types/index.d.ts",
"files": [
"types",
"build",
"package.json",
"README.md"
]
}