Configure test env
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
||||||
|
module.exports = {
|
||||||
|
// preset: 'ts-jest',
|
||||||
|
testEnvironment: 'node',
|
||||||
|
transform: {
|
||||||
|
'^.+\\.tsx?$': [
|
||||||
|
'ts-jest',
|
||||||
|
{
|
||||||
|
isolatedModules: true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+6767
-170
File diff suppressed because it is too large
Load Diff
+7
-1
@@ -27,6 +27,7 @@
|
|||||||
"yaml": "^2.1.1"
|
"yaml": "^2.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/jest": "^29.5.2",
|
||||||
"@types/node-fetch": "^2.6.1",
|
"@types/node-fetch": "^2.6.1",
|
||||||
"@types/nprogress": "^0.2.0",
|
"@types/nprogress": "^0.2.0",
|
||||||
"@types/ramda": "^0.27.60",
|
"@types/ramda": "^0.27.60",
|
||||||
@@ -37,9 +38,11 @@
|
|||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"filenamify": "^4.3.0",
|
"filenamify": "^4.3.0",
|
||||||
"http-server": "^14.1.0",
|
"http-server": "^14.1.0",
|
||||||
|
"jest": "^29.6.1",
|
||||||
"node-fetch": "^2.6.7",
|
"node-fetch": "^2.6.7",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"sort-keys": "^4.2.0",
|
"sort-keys": "^4.2.0",
|
||||||
|
"ts-jest": "^29.1.1",
|
||||||
"ts-node": "^10.4.0",
|
"ts-node": "^10.4.0",
|
||||||
"typescript": "^4.5.2"
|
"typescript": "^4.5.2"
|
||||||
},
|
},
|
||||||
@@ -54,7 +57,10 @@
|
|||||||
"tsc": "tsc --watch",
|
"tsc": "tsc --watch",
|
||||||
"node": "ts-node -T -P ./tsconfig-node.json",
|
"node": "ts-node -T -P ./tsconfig-node.json",
|
||||||
"assets-sync": "sh ./secrets/scripts/sync-public-assets.sh",
|
"assets-sync": "sh ./secrets/scripts/sync-public-assets.sh",
|
||||||
"compile:novels": "npm run node src/scripts/compile7sChapters.ts"
|
"compile:novels": "npm run node src/scripts/compile7sChapters.ts",
|
||||||
|
"copy-dump": "sh ./src/scripts/copyRawAssets.sh",
|
||||||
|
"compile:raw-data": "npm run node src/scripts/compileRawData.ts",
|
||||||
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user