Skip to content

Commit e86c241

Browse files
committed
chore: update babel test snapshot
1 parent 2dbac89 commit e86c241

File tree

3 files changed

+2037
-1693
lines changed

3 files changed

+2037
-1693
lines changed

package.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -63,34 +63,34 @@
6363
]
6464
},
6565
"devDependencies": {
66-
"@babel/core": "^7.8.4",
67-
"@babel/preset-env": "^7.8.4",
68-
"@types/jest": "^25.1.1",
69-
"@types/node": "^13.7.0",
66+
"@babel/core": "^7.10.1",
67+
"@babel/preset-env": "^7.10.1",
68+
"@types/jest": "^25.2.3",
69+
"@types/node": "^14.0.5",
7070
"@types/stylus": "^0.48.32",
71-
"autoprefixer": "^9.7.4",
71+
"autoprefixer": "^9.8.0",
7272
"babel-minify": "^0.5.1",
7373
"coffeescript": "^2.5.1",
74-
"conventional-changelog-cli": "^2.0.31",
75-
"eslint-config-kaisermann": "0.1.0",
76-
"eslint": "^6.8.0",
77-
"husky": "^4.2.3",
74+
"conventional-changelog-cli": "^2.0.34",
75+
"eslint": "^7.1.0",
76+
"eslint-config-kaisermann": "0.2.0",
77+
"husky": "^4.2.5",
7878
"install-peers-cli": "^2.2.0",
79-
"jest": "^25.1.0",
80-
"less": "^3.10.3",
81-
"lint-staged": "^10.0.8",
82-
"node-sass": "^4.13.1",
79+
"jest": "25",
80+
"less": "^3.11.1",
81+
"lint-staged": "^10.2.6",
82+
"node-sass": "^4.14.1",
83+
"postcss": "^7.0.31",
8384
"postcss-easy-import": "^3.0.0",
8485
"postcss-load-config": "^2.1.0",
85-
"postcss": "^7.0.26",
86-
"prettier": "^1.19.1",
87-
"pug": "^2.0.4",
88-
"sass": "^1.26.3",
86+
"prettier": "^2.0.5",
87+
"pug": "^3.0.0",
88+
"sass": "^1.26.5",
8989
"stylus": "^0.54.7",
9090
"sugarss": "^2.0.0",
91-
"svelte": "^3.18.1",
92-
"ts-jest": "^25.1.0",
93-
"typescript": "^3.7.5"
91+
"svelte": "^3.23.0",
92+
"ts-jest": "^26.0.0",
93+
"typescript": "^3.9.3"
9494
},
9595
"dependencies": {
9696
"@types/pug": "^2.0.4",
@@ -99,17 +99,17 @@
9999
"strip-indent": "^3.0.0"
100100
},
101101
"peerDependencies": {
102-
"@babel/core": "^7.8.4",
102+
"@babel/core": "^7.10.1",
103103
"coffeescript": "^2.5.1",
104-
"less": "^3.10.3",
105-
"node-sass": "^4.13.1",
106-
"postcss": "^7.0.26",
104+
"less": "^3.11.1",
105+
"node-sass": "^4.14.1",
106+
"postcss": "^7.0.31",
107107
"postcss-load-config": "^2.1.0",
108-
"pug": "^2.0.4",
109-
"sass": "^1.26.3",
108+
"pug": "^3.0.0",
109+
"sass": "^1.26.5",
110110
"stylus": "^0.54.7",
111-
"svelte": "^3.18.1",
112-
"typescript": "^3.7.5"
111+
"svelte": "^3.23.0",
112+
"typescript": "^3.9.3"
113113
},
114114
"peerDependenciesMeta": {
115115
"@babel/core": {

test/transformers/babel.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const BABEL_CONFIG = {
1717
};
1818

1919
describe('transformer - babel', () => {
20-
it('transpile with babel', async () => {
20+
it('transpiles with babel', async () => {
2121
const template = `<script>
2222
let foo = {}
2323
$: bar = foo?.b ?? 120
@@ -26,12 +26,13 @@ describe('transformer - babel', () => {
2626
babel: BABEL_CONFIG,
2727
});
2828
const preprocessed = await preprocess(template, opts);
29+
2930
expect(preprocessed.code).toMatchInlineSnapshot(`
30-
"<script>var _ref;
31+
"<script>var _foo$b;
3132
3233
var foo = {};
3334
34-
$: bar = (_ref = foo == null ? void 0 : foo.b) != null ? _ref : 120;</script>"
35+
$: bar = (_foo$b = foo == null ? void 0 : foo.b) != null ? _foo$b : 120;</script>"
3536
`);
3637
});
3738
});

0 commit comments

Comments
 (0)