Skip to content

Commit a55d4ed

Browse files
committed
filter not pop
1 parent e72444e commit a55d4ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

napi/parser/test/parse-raw.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ async function runCaseInWorker(type, props) {
6464

6565
// Download fixtures.
6666
// Save in `target` directory, same as where benchmarks store them.
67-
const benchFixtureUrls = [
67+
let benchFixtureUrls = [
6868
// TypeScript syntax (2.81MB)
6969
'https://cdn.jsdelivr.net/gh/microsoft/TypeScript@v5.3.3/src/compiler/checker.ts',
7070
// Real world app tsx (1.0M)
@@ -80,7 +80,7 @@ const benchFixtureUrls = [
8080
// `antd.js` tests sometimes take longer than 5 secs on CI, so skip that fixture in CI.
8181
// Tried setting `{ timeout: 10_000 }` option, but it didn't work for some reason.
8282
// TODO: Get longer timeout working and re-enable these tests in CI.
83-
if (process.env.CI) benchFixtureUrls.pop();
83+
if (process.env.CI) benchFixtureUrls = benchFixtureUrls.filter(url => !url.endsWith('/antd.js'));
8484

8585
await mkdir(TARGET_DIR_PATH, { recursive: true });
8686

0 commit comments

Comments
 (0)