diff --git a/packages/gatsby/src/bootstrap/__tests__/__snapshots__/remove-stale-jobs.js.snap b/packages/gatsby/src/bootstrap/__tests__/__snapshots__/remove-stale-jobs.ts.snap similarity index 100% rename from packages/gatsby/src/bootstrap/__tests__/__snapshots__/remove-stale-jobs.js.snap rename to packages/gatsby/src/bootstrap/__tests__/__snapshots__/remove-stale-jobs.ts.snap diff --git a/packages/gatsby/src/bootstrap/__tests__/remove-stale-jobs.js b/packages/gatsby/src/bootstrap/__tests__/remove-stale-jobs.ts similarity index 97% rename from packages/gatsby/src/bootstrap/__tests__/remove-stale-jobs.js rename to packages/gatsby/src/bootstrap/__tests__/remove-stale-jobs.ts index e6501b5c0b9f1..970252bc8f80c 100644 --- a/packages/gatsby/src/bootstrap/__tests__/remove-stale-jobs.js +++ b/packages/gatsby/src/bootstrap/__tests__/remove-stale-jobs.ts @@ -5,7 +5,7 @@ const { internalActions, publicActions } = require(`../../redux/actions`) jest.spyOn(internalActions, `removeStaleJob`) -const removeStaleJobs = require(`../remove-stale-jobs`) +import { removeStaleJobs } from "../remove-stale-jobs" describe(`remove-stale-jobs`, () => { let state