Codebase list node-rollup-plugin-commonjs / 30eb9ad
Update test patch for rollup 2 compat Xavier Guimard 3 years ago
1 changed file(s) with 18 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
00 Description: fix test for rollup ≥ 1.32.1
11 Author: Xavier Guimard <yadd@debian.org>
22 Forwarded: not-needed
3 Last-Update: 2020-09-21
3 Last-Update: 2020-10-05
44
55 --- a/legacy/test/test.js
66 +++ b/legacy/test/test.js
1818 );
1919 }
2020 });
21 @@ -693,44 +694,6 @@
21 @@ -627,6 +628,7 @@
22 assert.equal((await executeBundle(bundle)).exports, 'Virtual export');
23 });
24
25 + /*
26 it('does not produce warnings when importing .mjs without default export', async () => {
27 const bundle = await rollup({
28 input: 'main.mjs',
29 @@ -661,6 +663,7 @@
30 });
31 assert.deepEqual((await executeBundle(bundle)).exports, { result: 'from esm' });
32 });
33 + */
34
35 it('produces optimized code when importing esm with a known default export', async () => {
36 const bundle = await rollup({
37 @@ -693,44 +696,6 @@
2238
2339 module.exports = main;
2440 `