10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45580ad commit 417b8f2Copy full SHA for 417b8f2
pnpm/test/install/misc.ts
@@ -163,9 +163,9 @@ test("don't fail on case insensitive filesystems when package has 2 files with s
163
const files = fs.readdirSync('node_modules/@pnpm.e2e/with-same-file-in-different-cases')
164
const storeDir = project.getStorePath()
165
if (await dirIsCaseSensitive(storeDir)) {
166
- expect([...files]).toStrictEqual(['Foo.js', 'foo.js', 'package.json'])
+ expect([...files].sort()).toStrictEqual(['Foo.js', 'foo.js', 'package.json'])
167
} else {
168
- expect([...files]).toStrictEqual(['Foo.js', 'package.json'])
+ expect([...files].map((f) => f.toLowerCase()).sort()).toStrictEqual(['foo.js', 'package.json'])
169
}
170
})
171
0 commit comments