Skip to content

Commit 52fe62a

Browse files
author
Daniel Del Core
committed
updates ts-jest vers
1 parent 59b3e71 commit 52fe62a

File tree

30 files changed

+117
-80
lines changed

30 files changed

+117
-80
lines changed

community/@atlaskit__avatar/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__avatar"

community/@atlaskit__breadcrumbs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__breadcrumbs"

community/@atlaskit__button/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__button"

community/@atlaskit__calendar/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__calendar"

community/@atlaskit__checkbox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__checkbox"

community/@atlaskit__icon/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__icon"

community/@atlaskit__menu/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__menu"

community/@atlaskit__popper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__popper"

community/@atlaskit__popup/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__popup"

community/@atlaskit__progress-indicator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__progress-indicator"

community/@atlaskit__range/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__range"

community/@atlaskit__section-message/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__section-message"

community/@atlaskit__side-navigation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__side-navigation"

community/@atlaskit__spinner/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__spinner"

community/@atlaskit__tag/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__tag"

community/@atlaskit__textarea/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__textarea"

community/@atlaskit__textfield/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__textfield"

community/@atlaskit__toggle/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@atlaskit__toggle"

community/@emotion__monorepo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/@emotion__monorepo"

community/hypermod/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"jest": "^29.0.0",
2222
"parcel": "^2.8.3",
2323
"prettier": "^2.0.0",
24-
"ts-jest": "^29.0.0",
24+
"ts-jest": "^29.2.5",
2525
"typescript": "^5.2.2"
2626
},
2727
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/hypermod"

community/javascript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/javascript"

community/memoize-one/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/memoize-one"

community/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/node": "^16.11.0",
2121
"jest": "^29.0.0",
2222
"prettier": "^2.0.0",
23-
"ts-jest": "^29.0.0",
23+
"ts-jest": "^29.2.5",
2424
"typescript": "^5.2.2"
2525
},
2626
"repository": "https://github.com/hypermod-io/hypermod-community/tree/main/community/react"

jest.config.js

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
/** @type {import('ts-jest').JestConfigWithTsJest} */
22
module.exports = {
33
transform: {
4-
'^.+\\.ts$': [
4+
'\\.[jt]sx?$': [
55
'ts-jest',
66
{
7-
tsconfig: 'tsconfig.test.json',
8-
useESM: true,
7+
diagnostics: { ignoreCodes: [1343] },
8+
astTransformers: {
9+
before: [
10+
{
11+
path: 'node_modules/ts-jest-mock-import-meta', // or, alternatively, 'ts-jest-mock-import-meta' directly, without node_modules.
12+
options: {
13+
metaObjectReplacement: { url: 'https://www.url.com' },
14+
},
15+
},
16+
],
17+
},
918
},
1019
],
1120
},
12-
extensionsToTreatAsEsm: ['.ts'],
1321
moduleFileExtensions: ['ts', 'js'],
1422
testRegex: '^.+\\.(spec|test)\\.(ts|js)$',
1523
snapshotSerializers: ['jest-serializer-html-string'],
@@ -18,7 +26,9 @@ module.exports = {
1826
'jest-watch-typeahead/testname',
1927
],
2028
moduleNameMapper: {
21-
'^(\\.{1,2}/.*)\\.js$': '$1',
29+
// '@hypermod/(.*)\\.js': '<rootDir>/packages/$1/src',
30+
'(.+)\\.js$': '$1',
31+
2232
'@hypermod/(.*)$': '<rootDir>/packages/$1/src',
2333
'@codeshift/(.*)$': '<rootDir>/packages/$1/src',
2434
},

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@
6868
"rimraf": "^2.6.3",
6969
"semver": "^7.3.5",
7070
"tar": "^6.1.0",
71-
"ts-jest": "^29.0.0",
71+
"ts-jest": "^29.2.5",
72+
"ts-jest-mock-import-meta": "^1.2.0",
7273
"ts-loader": "^6.2.1",
7374
"ts-node": "^10.9.1",
7475
"tslib": "^2.2.0",

packages/cli/src/main.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ import {
1919
} from './utils/file-system.js';
2020
import { getConfigPrompt, getMultiConfigPrompt } from './prompt.js';
2121

22-
const __dirname = path.dirname(new URL(import.meta.url).pathname);
23-
2422
const ExperimentalModuleLoader = () => {
2523
const getInfo = (packageName: string) => {
2624
const entryPath = require.resolve(packageName);

packages/cli/tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"compilerOptions": {
44
"rootDir": "src",
55
"outDir": "dist",
6-
"baseUrl": ".",
7-
"module": "NodeNext",
8-
"moduleResolution": "NodeNext"
6+
"baseUrl": "."
97
},
108
"include": ["src"],
119
"references": [

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"compilerOptions": {
33
"strict": true,
44
"skipLibCheck": true,
5-
"moduleResolution": "node",
65
"target": "es6",
7-
"module": "CommonJS",
6+
"module": "nodenext",
7+
"moduleResolution": "nodenext",
88
"resolveJsonModule": true,
99
"esModuleInterop": true,
1010
"lib": [

tsconfig.test.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)