Skip to content

Commit

Permalink
Update Babel dependencies to latest and fix CI. (#315)
Browse files Browse the repository at this point in the history
Update Babel dependencies to latest and fix CI.
  • Loading branch information
rwjblue committed Dec 20, 2019
2 parents 235d88a + a604b01 commit 442ec64
Show file tree
Hide file tree
Showing 3 changed files with 431 additions and 718 deletions.
6 changes: 3 additions & 3 deletions node-tests/addon-test.js
Expand Up @@ -152,7 +152,7 @@ describe('ember-cli-babel', function() {
});
}));

it("does not remove regeneratorRuntime.async helper function when used together with debug-macros", co.wrap(function* () {
it("does not remove _asyncToGenerator helper function when used together with debug-macros", co.wrap(function* () {
input.write({
"foo.js": stripIndent`
import { assert } from '@ember/debug';
Expand All @@ -167,7 +167,7 @@ describe('ember-cli-babel', function() {

let contents = output.read()['foo.js'];

expect(contents).to.include('regeneratorRuntime.async');
expect(contents).to.include('function _asyncToGenerator');
}));

it("allows @ember/debug to be consumed via both debug-macros and ember-modules-api-polyfill", co.wrap(function* () {
Expand All @@ -186,7 +186,7 @@ describe('ember-cli-babel', function() {
let contents = output.read()['foo.js'];

expect(contents).to.not.include('@ember/debug');
expect(contents).to.include('regeneratorRuntime.async');
expect(contents).to.include('function _asyncToGenerator');
expect(contents).to.include('Ember.inspect;');
expect(contents).to.not.include('assert');
}));
Expand Down
14 changes: 7 additions & 7 deletions package.json
Expand Up @@ -40,14 +40,14 @@
"test:node:debug": "mocha debug node-tests"
},
"dependencies": {
"@babel/core": "^7.7.0",
"@babel/plugin-proposal-class-properties": "^7.7.0",
"@babel/plugin-proposal-decorators": "^7.7.0",
"@babel/plugin-transform-modules-amd": "^7.5.0",
"@babel/plugin-transform-runtime": "^7.6.0",
"@babel/core": "^7.7.7",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/plugin-proposal-decorators": "^7.7.4",
"@babel/plugin-transform-modules-amd": "^7.7.5",
"@babel/plugin-transform-runtime": "^7.7.6",
"@babel/polyfill": "^7.7.0",
"@babel/preset-env": "^7.7.0",
"@babel/runtime": "^7.7.0",
"@babel/preset-env": "^7.7.7",
"@babel/runtime": "^7.7.7",
"amd-name-resolver": "^1.2.1",
"babel-plugin-debug-macros": "^0.3.0",
"babel-plugin-ember-modules-api-polyfill": "^2.12.0",
Expand Down

0 comments on commit 442ec64

Please sign in to comment.