From c9cf6960e993a6714025ea5f3ed9f2159b5a7a35 Mon Sep 17 00:00:00 2001 From: Bob den Os <108393871+BobdenOs@users.noreply.github.com> Date: Tue, 23 May 2023 15:40:51 +0200 Subject: [PATCH] Fix property order Fixes `Expected object keys to be in ascending order. 'columnOffset' should be before 'filename'` --- packages/jest-runtime/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-runtime/src/index.ts b/packages/jest-runtime/src/index.ts index d44a95ac9213..d59477690cb1 100644 --- a/packages/jest-runtime/src/index.ts +++ b/packages/jest-runtime/src/index.ts @@ -1651,9 +1651,9 @@ export default class Runtime { ? `jest-nodejs-core-${filename}` : filename; return new Script(this.wrapCodeInModuleWrapper(scriptSource), { + columnOffset: this._fileTransforms.get(filename)?.wrapperLength, displayErrors: true, filename: scriptFilename, - columnOffset: this._fileTransforms.get(filename)?.wrapperLength, // @ts-expect-error: Experimental ESM API importModuleDynamically: async (specifier: string) => { invariant(