diff --git a/packages/create/bin/create-gene-workspace.js b/packages/create/bin/create-gene-workspace.js index a5c8aa4..7015ef4 100755 --- a/packages/create/bin/create-gene-workspace.js +++ b/packages/create/bin/create-gene-workspace.js @@ -137,11 +137,12 @@ async function runCommands() { '@storybook/react@6.5.16', '@storybook/theming@6.5.16', '@testing-library/dom@8.20.1', - '@testing-library/jest-dom@5.14.1', + '@testing-library/jest-dom@6.2.1', '@testing-library/react@16.0.0', '@nrwl/cypress@15.8.9', '@nrwl/react@15.8.9', '@nrwl/web@15.8.9', + "@types/jest@29.4.4" ]); console.log('Generating gene-workspace with pnpm nx'); diff --git a/packages/gene-tools/src/generators/gene-workspace-generator/index.ts b/packages/gene-tools/src/generators/gene-workspace-generator/index.ts index f4474ad..f2a92a8 100644 --- a/packages/gene-tools/src/generators/gene-workspace-generator/index.ts +++ b/packages/gene-tools/src/generators/gene-workspace-generator/index.ts @@ -38,7 +38,7 @@ export default async function (tree: Tree) { tree.write('.gitignore', updatedGitignore); // Create empty jest.setup.js file in the root - tree.write('jest.setup.js', 'export {};'); + tree.write('jest.setup.js', 'module.exports = {};'); return () => { installPackagesTask(tree);