Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(init): Fix generated jest.setup.js #33

Merged
merged 3 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/create/bin/create-gene-workspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,12 @@ async function runCommands() {
'@storybook/[email protected]',
'@storybook/[email protected]',
'@testing-library/[email protected]',
'@testing-library/jest-dom@5.14.1',
'@testing-library/jest-dom@6.2.1',
'@testing-library/[email protected]',
'@nrwl/[email protected]',
'@nrwl/[email protected]',
'@nrwl/[email protected]',
"@types/[email protected]"
]);

console.log('Generating gene-workspace with pnpm nx');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading