Skip to content

Commit

Permalink
No need to load regenerator-runtime in exec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed May 8, 2022
1 parent 1fca9b5 commit 0636c89
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
Expand Up @@ -20,8 +20,7 @@
"@babel/helper-check-duplicate-nodes": "workspace:^",
"@babel/helper-fixtures": "workspace:^",
"@jridgewell/trace-mapping": "^0.3.8",
"quick-lru": "5.1.0",
"regenerator-runtime": "^0.13.7"
"quick-lru": "5.1.0"
},
"devDependencies": {
"@types/jest": "^27.4.1"
Expand Down
Expand Up @@ -55,15 +55,6 @@ function createContext() {
const moduleCache = Object.create(null);
contextModuleCache.set(context, moduleCache);

// Initialize the test context with the polyfill, and then freeze the global to prevent implicit
// global creation in tests, which could cause things to bleed between tests.
runModuleInTestContext(
"regenerator-runtime",
fileURLToPath(import.meta.url),
context,
moduleCache,
);

// Populate the "babelHelpers" global with Babel's helper utilities.
runCacheableScriptInTestContext(
path.join(
Expand Down
10 changes: 1 addition & 9 deletions yarn.lock
Expand Up @@ -948,7 +948,6 @@ __metadata:
"@jridgewell/trace-mapping": ^0.3.8
"@types/jest": ^27.4.1
quick-lru: 5.1.0
regenerator-runtime: ^0.13.7
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -13130,14 +13129,7 @@ fsevents@^1.2.7:
languageName: node
linkType: hard

"regenerator-runtime@npm:^0.13.4, regenerator-runtime@npm:^0.13.7":
version: 0.13.7
resolution: "regenerator-runtime@npm:0.13.7"
checksum: 52b66e6669152c0b1bccd95c8e11aabbfe67bb97bdf00e223bdf723b0f0052d4da5c02001d4c4bef576bdc5bcdc38a20496d1b5363b65c950c8434ed5071d9e0
languageName: node
linkType: hard

"regenerator-runtime@npm:^0.13.9":
"regenerator-runtime@npm:^0.13.4, regenerator-runtime@npm:^0.13.9":
version: 0.13.9
resolution: "regenerator-runtime@npm:0.13.9"
checksum: 65ed455fe5afd799e2897baf691ca21c2772e1a969d19bb0c4695757c2d96249eb74ee3553ea34a91062b2a676beedf630b4c1551cc6299afb937be1426ec55e
Expand Down

0 comments on commit 0636c89

Please sign in to comment.