Skip to content

Commit b377058

Browse files
committed
chore: fix integration test run
1 parent 43c8e2b commit b377058

4 files changed

Lines changed: 837 additions & 401 deletions

File tree

jest.config.integration.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ module.exports = {
77
...sourceConfig,
88
projects: sourceConfig.projects.map((project) => ({
99
...project,
10-
// Redirect imports to the compiled bundles
10+
// Redirect imports to the compiled bundles.
11+
// This is to test compiled code instead of source (applies to code under test and also its deps).
1112
moduleNameMapper: {},
1213
})),
1314

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"test": "jest",
1212
"test:ci": "jest --ci --runInBand",
1313
"test:ci:coverage": "yarn test:ci --coverage",
14-
"test:integration": "jest -c jest.config.integration.js",
14+
"test:integration": "yarn node --experimental-vm-modules $(yarn bin jest) -c jest.config.integration.js",
1515
"test:e2e": "yarn workspaces foreach -p run test:e2e",
1616
"test:tsd": "jest -c jest.config.types.js",
1717
"test:all": "yarn test && yarn test:integration && yarn test:e2e && test:tsd",
@@ -51,7 +51,7 @@
5151
"@typescript-eslint/eslint-plugin": "^5.50.0",
5252
"@typescript-eslint/parser": "^5.50.0",
5353
"babel-eslint": "^10.1.0",
54-
"babel-jest": "^29.4.3",
54+
"babel-jest": "^29.7.0",
5555
"chalk": "^4.1.0",
5656
"cross-env": "^7.0.2",
5757
"eslint": "^7.32.0",
@@ -61,9 +61,9 @@
6161
"eslint-plugin-node": "^11.1.0",
6262
"eslint-plugin-promise": "^4.1.1",
6363
"husky": "^8.0.3",
64-
"jest": "^29.4.3",
65-
"jest-environment-jsdom": "^29.4.3",
66-
"jest-environment-node-single-context": "^29.0.0",
64+
"jest": "^29.7.0",
65+
"jest-environment-jsdom": "^29.7.0",
66+
"jest-environment-node-single-context": "^29.4.0",
6767
"jest-runner-tsd": "^4.0.0",
6868
"lerna": "^6.5.1",
6969
"lint-staged": "^13.1.0",
@@ -78,7 +78,7 @@
7878
"size-limit": "^8.1.1",
7979
"strip-ansi": "^6.0.1",
8080
"swc-node": "^1.0.0",
81-
"ts-jest": "^29.0.5",
81+
"ts-jest": "^29.2.4",
8282
"typescript": "^4.9.5"
8383
},
8484
"workspaces": [

packages/loader/src/webpackLoader.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,10 @@ Please check that \`catalogs.path\` is filled properly.\n`
5454
sourceLocale: config.sourceLocale,
5555
})
5656

57-
// In production we don't want untranslated strings. It's better to use message
57+
// In production, we don't want untranslated strings. It's better to use message
5858
// keys as a last resort.
5959
// In development, however, we want to catch missing strings with `missing` parameter
60-
// of I18nProvider (React) or setupI18n (core) and therefore we need to get
61-
// empty translations if missing.
60+
// of setupI18n (core) and therefore we need to get empty translations if missing.
6261
const strict = process.env.NODE_ENV !== "production"
6362

6463
return createCompiledCatalog(locale, messages, {

0 commit comments

Comments
 (0)