-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3874 from terascope/fix-jest-config-top-level-await
Fix jest config top level await
- Loading branch information
Showing
27 changed files
with
172 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ tests | |
powered-test | ||
|
||
# asset directories | ||
doc | ||
website | ||
|
||
# examples | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { fileURLToPath } from 'node:url'; | ||
import path from 'node:path'; | ||
import baseConfig from '../../jest.config.base.js'; | ||
|
||
const dirPath = fileURLToPath(new URL('.', import.meta.url)); | ||
const configModulePath = path.join(dirPath, '../../jest.config.base.js'); | ||
|
||
const module = await import(configModulePath); | ||
|
||
const config = module.default(dirPath); | ||
const config = baseConfig(dirPath); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/node_modules/npm-run-path/node_modules/unicorn-magic/package.json b/node_modules/npm-run-path/node_modules/unicorn-magic/package.json | ||
index ac4246d..6688b2c 100644 | ||
--- a/node_modules/npm-run-path/node_modules/unicorn-magic/package.json | ||
+++ b/node_modules/npm-run-path/node_modules/unicorn-magic/package.json | ||
@@ -14,7 +14,8 @@ | ||
"exports": { | ||
"node": { | ||
"types": "./node.d.ts", | ||
- "import": "./node.js" | ||
+ "import": "./node.js", | ||
+ "default": "./node.js" | ||
}, | ||
"default": { | ||
"types": "./default.d.ts", |
Oops, something went wrong.