Skip to content

Commit 2cc5035

Browse files
authored
fix(init): Fix generated jest.setup.js (#33)
* fix(init): Fix generated jest.setup.js * fix(init): Add missing types for jest
1 parent 37205e2 commit 2cc5035

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/create/bin/create-gene-workspace.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,12 @@ async function runCommands() {
137137
'@storybook/[email protected]',
138138
'@storybook/[email protected]',
139139
'@testing-library/[email protected]',
140-
'@testing-library/jest-dom@5.14.1',
140+
'@testing-library/jest-dom@6.2.1',
141141
'@testing-library/[email protected]',
142142
143143
144144
145+
145146
]);
146147

147148
console.log('Generating gene-workspace with pnpm nx');

packages/gene-tools/src/generators/gene-workspace-generator/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default async function (tree: Tree) {
3838
tree.write('.gitignore', updatedGitignore);
3939

4040
// Create empty jest.setup.js file in the root
41-
tree.write('jest.setup.js', 'export {};');
41+
tree.write('jest.setup.js', 'module.exports = {};');
4242

4343
return () => {
4444
installPackagesTask(tree);

0 commit comments

Comments
 (0)