build: typescript+ts-jest compatibility

This commit is contained in:
Marc 2023-03-21 01:48:04 -04:00
parent d3a219eadb
commit 34082e8a94
Signed by: marc
GPG key ID: 048E042F22B5DC79
3 changed files with 14 additions and 17 deletions

View file

@ -1,8 +1,5 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
transformIgnorePatterns: ['.test.js'],
transform: {
'^.+\\.ts$': 'ts-jest',
},
roots: ['<rootDir>/tests'],
testMatch: ['**/*.test.ts'],
}
preset: 'ts-jest',
testEnvironment: 'node',
};

View file

@ -53,6 +53,6 @@
"jest": "^29.5.0",
"prettier": "^2.8.5",
"ts-jest": "^29.0.5",
"typescript": "^5.0.2"
"typescript": "^4.3.0"
}
}

View file

@ -4504,7 +4504,7 @@ fsevents@^2.3.2:
jest: ^29.5.0
prettier: ^2.8.5
ts-jest: ^29.0.5
typescript: ^5.0.2
typescript: ^4.3.0
bin:
packwatch: ./dist/cli.js
languageName: unknown
@ -5425,23 +5425,23 @@ resolve@^1.22.1:
languageName: node
linkType: hard
typescript@^5.0.2:
version: 5.0.2
resolution: "typescript@npm:5.0.2"
"typescript@npm:^4.3.0":
version: 4.9.5
resolution: "typescript@npm:4.9.5"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: bef1dcd166acfc6934b2ec4d72f93edb8961a5fab36b8dd2aaf6f4f4cd5c0210f2e0850aef4724f3b4913d5aef203a94a28ded731b370880c8bcff7e4ff91fc1
checksum: ee000bc26848147ad423b581bd250075662a354d84f0e06eb76d3b892328d8d4440b7487b5a83e851b12b255f55d71835b008a66cbf8f255a11e4400159237db
languageName: node
linkType: hard
"typescript@patch:typescript@^5.0.2#~builtin<compat/typescript>":
version: 5.0.2
resolution: "typescript@patch:typescript@npm%3A5.0.2#~builtin<compat/typescript>::version=5.0.2&hash=1f5320"
"typescript@patch:typescript@^4.3.0#~builtin<compat/typescript>":
version: 4.9.5
resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: bdbf3d0aac0d6cf010fbe0536753dc19f278eb4aba88140dcd25487dfe1c56ca8b33abc0dcd42078790a939b08ebc4046f3e9bb961d77d3d2c3cfa9829da4d53
checksum: ab417a2f398380c90a6cf5a5f74badd17866adf57f1165617d6a551f059c3ba0a3e4da0d147b3ac5681db9ac76a303c5876394b13b3de75fdd5b1eaa06181c9d
languageName: node
linkType: hard