diff --git a/jest.config.js b/jest.config.js index d77bfb5..b413e10 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,8 +1,5 @@ +/** @type {import('ts-jest').JestConfigWithTsJest} */ module.exports = { - transformIgnorePatterns: ['.test.js'], - transform: { - '^.+\\.ts$': 'ts-jest', - }, - roots: ['/tests'], - testMatch: ['**/*.test.ts'], -} + preset: 'ts-jest', + testEnvironment: 'node', +}; \ No newline at end of file diff --git a/package.json b/package.json index 7dec138..e93e685 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/yarn.lock b/yarn.lock index 7dd393c..9b5d7bd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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": - version: 5.0.2 - resolution: "typescript@patch:typescript@npm%3A5.0.2#~builtin::version=5.0.2&hash=1f5320" +"typescript@patch:typescript@^4.3.0#~builtin": + version: 4.9.5 + resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin::version=4.9.5&hash=23ec76" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: bdbf3d0aac0d6cf010fbe0536753dc19f278eb4aba88140dcd25487dfe1c56ca8b33abc0dcd42078790a939b08ebc4046f3e9bb961d77d3d2c3cfa9829da4d53 + checksum: ab417a2f398380c90a6cf5a5f74badd17866adf57f1165617d6a551f059c3ba0a3e4da0d147b3ac5681db9ac76a303c5876394b13b3de75fdd5b1eaa06181c9d languageName: node linkType: hard