Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't load plugins synchronously in tests (#14679)
* Don't load plugins synchronously in tests * Full paths
- Loading branch information
1 parent
3636faa
commit 87f26d5
Showing
22 changed files
with
122 additions
and
99 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
13 changes: 7 additions & 6 deletions
13
packages/babel-core/test/fixtures/option-manager/presets/es2015_default_function.js
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,22 +1,23 @@ | ||
// from code: | ||
// export default function() { | ||
// return { | ||
// plugins: [require('../../../../../babel-plugin-syntax-decorators'),] | ||
// plugins: ["__dirname + "/../../../../../babel-plugin-syntax-decorators/lib/index.js"] | ||
// }; | ||
// } | ||
'use strict'; | ||
"use strict"; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
value: true, | ||
}); | ||
|
||
exports.default = function () { | ||
return { | ||
plugins: [ | ||
[ | ||
require('../../../../../babel-plugin-syntax-decorators'), | ||
{ legacy: true } | ||
__dirname + | ||
"/../../../../../babel-plugin-syntax-decorators/lib/index.js", | ||
{ legacy: true }, | ||
], | ||
] | ||
], | ||
}; | ||
}; |
15 changes: 7 additions & 8 deletions
15
packages/babel-core/test/fixtures/option-manager/presets/es2015_default_object.js
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,19 +1,18 @@ | ||
// from code: | ||
// export default { | ||
// plugins: [ | ||
// require('../../../../../babel-plugin-syntax-decorators'), | ||
// ] | ||
// plugins: [__dirname + "/../../../../../babel-plugin-syntax-decorators/lib/index.js"] | ||
// }; | ||
'use strict'; | ||
"use strict"; | ||
|
||
exports.__esModule = true; | ||
module.exports = function() { | ||
module.exports = function () { | ||
return { | ||
plugins: [ | ||
[ | ||
require('../../../../../babel-plugin-syntax-decorators'), | ||
{ legacy: true } | ||
__dirname + | ||
"/../../../../../babel-plugin-syntax-decorators/lib/index.js", | ||
{ legacy: true }, | ||
], | ||
] | ||
], | ||
}; | ||
}; |
9 changes: 6 additions & 3 deletions
9
packages/babel-core/test/fixtures/option-manager/presets/es2015_named.js
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,8 +1,11 @@ | ||
// from code: | ||
// export const plugins = [ | ||
// require('../../../../../babel-plugin-syntax-decorators'), | ||
// __dirname + "/../../../../../babel-plugin-syntax-decorators/lib/index.js" | ||
// ]; | ||
'use strict'; | ||
"use strict"; | ||
|
||
exports.__esModule = true; | ||
var plugins = exports.plugins = [require('../../../../../babel-plugin-syntax-decorators')]; | ||
var plugins = [ | ||
__dirname + "/../../../../../babel-plugin-syntax-decorators/lib/index.js", | ||
]; | ||
exports.plugins = plugins; |
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
9 changes: 5 additions & 4 deletions
9
packages/babel-core/test/fixtures/option-manager/presets/es5_object.js
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,10 +1,11 @@ | ||
module.exports = function() { | ||
module.exports = function () { | ||
return { | ||
plugins: [ | ||
[ | ||
require('../../../../../babel-plugin-syntax-decorators'), | ||
{ legacy: true } | ||
__dirname + | ||
"/../../../../../babel-plugin-syntax-decorators/lib/index.js", | ||
{ legacy: true }, | ||
], | ||
] | ||
], | ||
}; | ||
}; |
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
3 changes: 2 additions & 1 deletion
3
...lision-in-function-expression/test/fixtures/integration/helper-function-name/options.json
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,6 +1,7 @@ | ||
{ | ||
"minNodeVersion": "12.11.0", | ||
"plugins": [ | ||
"./plugin.js", | ||
"./plugin.mjs", | ||
"bugfix-safari-id-destructuring-collision-in-function-expression" | ||
] | ||
} |
5 changes: 3 additions & 2 deletions
5
...ntegration/helper-function-name/plugin.js → ...tegration/helper-function-name/plugin.mjs
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
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
3 changes: 2 additions & 1 deletion
3
packages/babel-plugin-transform-modules-commonjs/test/fixtures/source-map/options.json
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,3 +1,4 @@ | ||
{ | ||
"plugins": ["transform-modules-commonjs"] | ||
"plugins": ["transform-modules-commonjs"], | ||
"parserOpts": { "allowReturnOutsideFunction": true } | ||
} |
Oops, something went wrong.