Skip to content

Commit

Permalink
Merge pull request #1767 from hashicorp/stop-pinning-jest-in-ts-init-…
Browse files Browse the repository at this point in the history
…template

fix(cli): Stop pinning jest in TS init template
  • Loading branch information
ansgarm authored May 4, 2022
2 parents 91e226c + c59e5b3 commit abbf494
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/cdktf-cli/templates/typescript/.hooks.sscaff.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ exports.post = ctx => {
if (!npm_cdktf) { throw new Error(`missing context "npm_cdktf"`); }

installDeps([npm_cdktf, `constructs@10`]);
// make sure we have at least https://github.com/facebook/jest/releases/tag/v27.4.3 due to https://github.com/facebook/jest/issues/12098
installDeps(['@types/node', 'typescript', 'jest@^27.4.3', '@types/jest', "ts-jest", "ts-node"], true);
installDeps(['@types/node', 'typescript', 'jest', '@types/jest', "ts-jest", "ts-node"], true);

console.log(readFileSync('./help', 'utf-8'));
};
Expand Down

0 comments on commit abbf494

Please sign in to comment.