Configure test env

This commit is contained in:
Sakura Knoll
2023-07-09 07:30:16 +09:00 Unverified
parent b40c0ec38e
commit d947b62514
3 changed files with 6787 additions and 171 deletions
+13
View File
@@ -0,0 +1,13 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
// preset: 'ts-jest',
testEnvironment: 'node',
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
isolatedModules: true
}
]
}
}
+6767 -170
View File
File diff suppressed because it is too large Load Diff
+7 -1
View File
@@ -27,6 +27,7 @@
"yaml": "^2.1.1"
},
"devDependencies": {
"@types/jest": "^29.5.2",
"@types/node-fetch": "^2.6.1",
"@types/nprogress": "^0.2.0",
"@types/ramda": "^0.27.60",
@@ -37,9 +38,11 @@
"file-saver": "^2.0.5",
"filenamify": "^4.3.0",
"http-server": "^14.1.0",
"jest": "^29.6.1",
"node-fetch": "^2.6.7",
"npm-run-all": "^4.1.5",
"sort-keys": "^4.2.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.4.0",
"typescript": "^4.5.2"
},
@@ -54,7 +57,10 @@
"tsc": "tsc --watch",
"node": "ts-node -T -P ./tsconfig-node.json",
"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": [],
"author": "",