@nx/remix 22.0.2 → 22.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -6
- package/src/generators/application/__snapshots__/application.impl.spec.ts.snap +2 -2
- package/src/generators/application/application.impl.js +1 -1
- package/src/generators/application/files/common/tsconfig.app.json__tmpl__ +2 -0
- package/src/generators/application/files/ts-solution/tsconfig.app.json__tmpl__ +2 -0
- package/src/generators/application/lib/update-unit-test-config.js +1 -1
- package/src/generators/library/__snapshots__/library.impl.spec.ts.snap +1 -1
- package/src/generators/library/lib/add-unit-testing.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/remix",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.4",
|
|
4
4
|
"description": "The Remix plugin for Nx contains executors and generators for managing Remix applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Vitest, Jest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, routes, loaders, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"migrations": "./migrations.json"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nx/devkit": "22.0.
|
|
33
|
-
"@nx/js": "22.0.
|
|
34
|
-
"@nx/react": "22.0.
|
|
35
|
-
"@nx/workspace": "22.0.
|
|
32
|
+
"@nx/devkit": "22.0.4",
|
|
33
|
+
"@nx/js": "22.0.4",
|
|
34
|
+
"@nx/react": "22.0.4",
|
|
35
|
+
"@nx/workspace": "22.0.4",
|
|
36
36
|
"tslib": "^2.3.0",
|
|
37
37
|
"@phenomnomnominal/tsquery": "~5.0.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"nx": "22.0.
|
|
40
|
+
"nx": "22.0.4"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@remix-run/dev": "^2.14.0"
|
|
@@ -226,7 +226,7 @@ export default defineConfig({
|
|
|
226
226
|
`;
|
|
227
227
|
|
|
228
228
|
exports[`Remix Application Integrated Repo --unitTestRunner should generate the correct files for testing using jest 1`] = `
|
|
229
|
-
"
|
|
229
|
+
"module.exports = {
|
|
230
230
|
displayName: 'test',
|
|
231
231
|
preset: '../jest.preset.js',
|
|
232
232
|
transform: {
|
|
@@ -405,7 +405,7 @@ export default defineConfig({
|
|
|
405
405
|
`;
|
|
406
406
|
|
|
407
407
|
exports[`Remix Application Standalone Project Repo --unitTestRunner should generate the correct files for testing using jest 1`] = `
|
|
408
|
-
"
|
|
408
|
+
"module.exports = {
|
|
409
409
|
setupFilesAfterEnv: ['<rootDir>/test-setup.ts'],
|
|
410
410
|
displayName: 'test',
|
|
411
411
|
preset: './jest.preset.cjs',
|
|
@@ -203,7 +203,7 @@ async function remixApplicationGeneratorInternal(tree, _options) {
|
|
|
203
203
|
tree.write('jest.preset.js', `import { nxPreset } from '@nx/jest/preset.js';
|
|
204
204
|
export default {...nxPreset};
|
|
205
205
|
`);
|
|
206
|
-
(0, testing_config_utils_1.updateJestTestMatch)(tree, 'jest.config.
|
|
206
|
+
(0, testing_config_utils_1.updateJestTestMatch)(tree, 'jest.config.cts', '<rootDir>/tests/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}');
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
tasks.push(await (0, lib_1.addE2E)(tree, options));
|
|
@@ -17,7 +17,7 @@ function updateUnitTestConfig(tree, pathToRoot, unitTestRunner, rootProject) {
|
|
|
17
17
|
(0, testing_config_utils_1.updateVitestTestSetup)(tree, pathToViteConfig, 'test-setup.ts');
|
|
18
18
|
}
|
|
19
19
|
else if (unitTestRunner === 'jest' && rootProject) {
|
|
20
|
-
const pathToJestConfig = (0, devkit_1.joinPathFragments)(pathToRoot, 'jest.config.
|
|
20
|
+
const pathToJestConfig = (0, devkit_1.joinPathFragments)(pathToRoot, 'jest.config.cts');
|
|
21
21
|
tree.write('jest.preset.cjs', tree.read('jest.preset.js', 'utf-8'));
|
|
22
22
|
(0, testing_config_utils_1.updateJestTestSetup)(tree, pathToJestConfig, `<rootDir>/test-setup.ts`);
|
|
23
23
|
tree.write(pathToJestConfig, tree
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
3
|
exports[`Remix Library Generator --unitTestRunner should create the correct config files for testing with jest 1`] = `
|
|
4
|
-
"
|
|
4
|
+
"module.exports = {
|
|
5
5
|
setupFilesAfterEnv: ['./src/test-setup.ts'],
|
|
6
6
|
displayName: 'test',
|
|
7
7
|
preset: '../jest.preset.js',
|
|
@@ -19,7 +19,7 @@ function addUnitTestingSetup(tree, options) {
|
|
|
19
19
|
(0, testing_config_utils_1.updateVitestTestSetup)(tree, pathToVitestConfig, './src/test-setup.ts');
|
|
20
20
|
}
|
|
21
21
|
else if (options.unitTestRunner === 'jest') {
|
|
22
|
-
const pathToJestConfig = (0, devkit_1.joinPathFragments)(options.projectRoot, `jest.config.
|
|
22
|
+
const pathToJestConfig = (0, devkit_1.joinPathFragments)(options.projectRoot, `jest.config.cts`);
|
|
23
23
|
(0, testing_config_utils_1.updateJestTestSetup)(tree, pathToJestConfig, './src/test-setup.ts');
|
|
24
24
|
}
|
|
25
25
|
return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
|