Skip to content

Commit c1813ff

Browse files
committed
chore: update
1 parent f044c8f commit c1813ff

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

tests/integration/resolve/index.test.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff 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

2739
test('resolve node protocol', async () => {

0 commit comments

Comments
 (0)