aboutsummaryrefslogtreecommitdiff
path: root/test/bundler/bundler_edgecase.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/bundler/bundler_edgecase.test.ts')
-rw-r--r--test/bundler/bundler_edgecase.test.ts15
1 files changed, 7 insertions, 8 deletions
diff --git a/test/bundler/bundler_edgecase.test.ts b/test/bundler/bundler_edgecase.test.ts
index 1b9b60a68..bbbe4270b 100644
--- a/test/bundler/bundler_edgecase.test.ts
+++ b/test/bundler/bundler_edgecase.test.ts
@@ -320,7 +320,6 @@ describe("bundler", () => {
},
});
itBundled("edgecase/JSONDefaultAndNamedImport", {
- // We don't support rewriting default import to property acceses yet
todo: true,
files: {
"/entry.js": /* js */ `
@@ -397,24 +396,25 @@ describe("bundler", () => {
},
});
itBundled("edgecase/PackageJSONDefaultConditionImport", {
- todo: true,
files: {
"/entry.js": /* js */ `
- import React from 'react'
+ import React from 'boop'
console.log(React)
`,
- "/node_modules/react/package.json": /* json */ `
+ // NOTE: this test fails if the package name is "react"
+ // most likely an issue with commonjs unwrapping.
+ "/node_modules/boop/package.json": /* json */ `
{
- "name": "react",
+ "name": "boop",
"exports": {
".": {
"react-server": "./ignore.js",
- "default": "./react.js"
+ "default": "./boop.js"
}
}
}
`,
- "/node_modules/react/react.js": /* js */ `
+ "/node_modules/boop/boop.js": /* js */ `
export default 123
`,
},
@@ -661,7 +661,6 @@ describe("bundler", () => {
target: "bun",
});
itBundled("edgecase/RuntimeExternalRequire", {
- todo: true,
files: {
"/entry.ts": /* ts */ `
console.log(require("hello-1").type);