Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgoli committed Jun 8, 2022
1 parent 2f0bc7c commit 38db37b
Show file tree
Hide file tree
Showing 4 changed files with 826 additions and 973 deletions.
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
"scripts": {
"build": "yarn lint && tsc && webpack && tsc dist/esm/**/*.d.ts",
"lint": "yarn tslint --project . --fix --config tslint.json",
"test": "TS_NODE_PROJECT=tsconfig.test.json mocha **/*.test.ts",
"test-ci": "TS_NODE_PROJECT=tsconfig.test.json nyc mocha **/*.test.ts"
"run-ts": "TS_NODE_PROJECT=tsconfig.test.json node --loader ts-node/esm",
"test": "yarn run-ts ./node_modules/.bin/mocha **/*.test.ts",
"test-ci": "yarn run-ts ./node_modules/.bin/nyc yarn run-ts ./node_modules/.bin/mocha **/*.test.ts"
},
"nyc": {
"extension": [
Expand All @@ -46,15 +47,15 @@
"devDependencies": {
"@types/assert": "^1.4.3",
"@types/chai": "^4.2.7",
"@types/mocha": "^5.2.5",
"@types/mockdate": "^2.0.0",
"@types/node": "^12.12.18",
"@types/mocha": "^9.1.1",
"@types/mockdate": "^3.0.0",
"@types/node": "^17.0.41",
"chai": "^4.2.0",
"coverage": "^0.4.1",
"husky": "^3.1.0",
"mocha": "^6.2.2",
"mockdate": "^2.0.5",
"nyc": "^14.1.1",
"husky": "^8.0.1",
"mocha": "^10.0.0",
"mockdate": "^3.0.5",
"nyc": "^15.1.0",
"source-map-loader": "^3.0.1",
"source-map-support": "^0.5.16",
"terser-webpack-plugin": "^5.3.3",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"jsx": "react",
"strictNullChecks": true,
"importHelpers": true,
"esModuleInterop": true,
"rootDirs": ["./src/", "./test/"]
},
"include": ["./src/**/*"],
Expand Down
1 change: 1 addition & 0 deletions tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"sourceMap": true,
"module": "commonjs",
"noEmitOnError": true,
"esModuleInterop": true,
"target": "es6",
"jsx": "react",
"baseUrl": ".",
Expand Down
Loading

0 comments on commit 38db37b

Please sign in to comment.