Skip to content

Commit 2609237

Browse files
clydindgp1130
authored andcommitted
test: avoid new Node.js properties in webpack direct E2E chunk size testing
Avoid using `fs.Dirent.path` in the `packages/webpack/test-app` E2E test to ensure the test executes properly on Node.js v18.13. The property was not added until v18.17.
1 parent 5759cde commit 2609237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/legacy-cli/e2e/tests/packages/webpack/test-app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default async function () {
2121
for (const outputFile of outputFiles) {
2222
if (outputFile.isFile() && outputFile.name.endsWith('.app.main.js')) {
2323
++fileCount;
24-
await expectFileSizeToBeUnder(join(outputFile.path, outputFile.name), 1024);
24+
await expectFileSizeToBeUnder(join('dist', outputFile.name), 1024);
2525
}
2626
}
2727
if (fileCount !== 3) {

0 commit comments

Comments
 (0)