File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
tests/integration/resolve Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,24 @@ test('resolve data url', async () => {
1616
1717// TODO: false module path is different from linux and windows
1818// EXTERNAL MODULE: <ROOT>/rslib/e2e/cases/resolve/false/./browser-false/util (ignored)
19- test . todo ( 'resolve false' , async ( ) => {
19+ test ( 'resolve false' , async ( ) => {
2020 const fixturePath = join ( __dirname , 'false' ) ;
2121 const { entries, isSuccess } = await buildAndGetResults ( { fixturePath } ) ;
2222
2323 expect ( isSuccess ) . toBeTruthy ( ) ;
24- expect ( entries . esm ) . toMatchSnapshot ( ) ;
24+ if ( process . env . ADVANCED_ESM ) {
25+ expect ( entries . esm ) . toMatchInlineSnapshot ( `
26+ "import { __webpack_require__ } from "./runtime.js";
27+ __webpack_require__.add({
28+ "?b5d4": function() {}
29+ });
30+ const util_ignored_ = __webpack_require__("?b5d4");
31+ var util_ignored__default = /*#__PURE__*/ __webpack_require__.n(util_ignored_);
32+ console.log('foo:', util_ignored__default());
33+ console.log('bar: ', "bar");
34+ "
35+ ` ) ;
36+ }
2537} ) ;
2638
2739test ( 'resolve node protocol' , async ( ) => {
You can’t perform that action at this time.
0 commit comments