Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Handle the scenario where a package.json#browser field could be false #427

Merged
merged 15 commits into from
Jul 11, 2024
Merged
Prev Previous commit
Next Next commit
Undo test fixture change
jeffsee55 committed Jul 5, 2024
commit 18927d8ee942f4f9b1ef72e74c63ac3955798726
4 changes: 1 addition & 3 deletions test/unit.test.js
Original file line number Diff line number Diff line change
@@ -66,9 +66,7 @@ function resetFileIOMocks() {

afterEach(resetFileIOMocks);

const unitTests2 = [{ testName: 'browser-remappings-string', isRoot: false }];

for (const { testName, isRoot } of unitTests2) {
for (const { testName, isRoot } of unitTests) {
const testSuffix = `${testName} from ${isRoot ? 'root' : 'cwd'}`;
if (
process.platform === 'win32' &&