Skip to content

Commit

Permalink
type errors in test
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Sep 19, 2023
1 parent 9e94c5e commit 6d9cec1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/babel-jest/src/__tests__/getCacheKey.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ afterEach(() => {
jest.resetModules();

if (process.version === 'new-node-version') {
// @ts-expect-error: Testing purpose
process.version = processVersion;
}

Expand Down Expand Up @@ -194,6 +195,7 @@ describe('getCacheKey', () => {
test('if node version is changing', () => {
// @ts-expect-error: Testing purpose
delete process.version;
// @ts-expect-error: Testing purpose
process.version = 'new-node-version';

const newCacheKey = getCacheKey!(sourceText, sourcePath, transformOptions);
Expand Down

0 comments on commit 6d9cec1

Please sign in to comment.