Skip to content

Commit 5ab0958

Browse files
committed
when the tests dont pass, change the tests
1 parent 1ac4ccc commit 5ab0958

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

test/__snapshots__/index.test.js.snap

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`fixtures alias 1`] = `
4-
"Used script: microbundle --no-sourcemap -f cjs --alias ./constants=./constants-debug
4+
"Used script: microbundle --no-sourcemap --alias ./constants=./constants-debug
55
66
Directory tree:
77
88
alias
99
dist
1010
alias-mapping.js
11+
alias-mapping.mjs
12+
alias-mapping.umd.js
1113
package.json
1214
src
1315
constants-debug.js
@@ -17,14 +19,28 @@ alias
1719
1820
Build \\"aliasMapping\\" to dist:
1921
62 B: alias-mapping.js.gz
20-
46 B: alias-mapping.js.br"
22+
46 B: alias-mapping.js.br
23+
62 B: alias-mapping.mjs.gz
24+
46 B: alias-mapping.mjs.br
25+
156 B: alias-mapping.umd.js.gz
26+
111 B: alias-mapping.umd.js.br"
2127
`;
2228

2329
exports[`fixtures alias 2`] = `
2430
"console.log(\\"DEBUG should be true: \\",!0);
2531
"
2632
`;
2733

34+
exports[`fixtures alias 3`] = `
35+
"console.log(\\"DEBUG should be true: \\",!0);
36+
"
37+
`;
38+
39+
exports[`fixtures alias 4`] = `
40+
"!function(e,o){\\"object\\"==typeof exports&&\\"undefined\\"!=typeof module?o():\\"function\\"==typeof define&&define.amd?define(o):o()}(0,function(){console.log(\\"DEBUG should be true: \\",!0)});
41+
"
42+
`;
43+
2844
exports[`fixtures async-iife-ts 1`] = `
2945
"Used script: microbundle
3046
@@ -754,7 +770,7 @@ exports[`fixtures default-named 6`] = `
754770
exports[`fixtures default-named 7`] = `"{\\"version\\":3,\\"file\\":\\"default-named.umd.js\\",\\"sources\\":[\\"../src/index.js\\"],\\"sourcesContent\\":[\\"export const foo = 42;\\\\nexport default function bar() {}\\\\n\\"],\\"names\\":[],\\"mappings\\":\\"wLAAmB,aACJ\\"}"`;
755771
756772
exports[`fixtures define 1`] = `
757-
"Used script: microbundle --no-sourcemap -f cjs --define DEBUG=false
773+
"Used script: microbundle --no-sourcemap --define DEBUG=false
758774
759775
Directory tree:
760776

test/fixtures/alias/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "alias-mapping",
33
"scripts": {
4-
"build": "microbundle --no-sourcemap -f cjs --alias ./constants=./constants-debug"
4+
"build": "microbundle --no-sourcemap --alias ./constants=./constants-debug"
55
}
66
}

test/fixtures/define/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "alias",
33
"scripts": {
4-
"build": "microbundle --no-sourcemap -f cjs --define DEBUG=false"
4+
"build": "microbundle --no-sourcemap --define DEBUG=false"
55
}
66
}

0 commit comments

Comments
 (0)