Skip to content

Commit 353b8e9

Browse files
test ci
1 parent 537254a commit 353b8e9

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

test/test.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@ async function main(sources: string[]) {
1919
const fixturesFromCmdline = process.env.FIXTURE;
2020
if (fixturesFromCmdline) {
2121
const fixtureNames = fixturesFromCmdline.split(",");
22-
fixtures = fixtures.filter((fixture) =>
23-
fixtureNames.some(fixture.runForName),
24-
);
22+
fixtures = fixtures.filter((fixture) => {
23+
console.log({ fixture });
24+
25+
return fixtureNames.some((name) => {
26+
console.log({ name });
27+
return fixture.runForName(name);
28+
});
29+
});
2530
}
2631

2732
if (allFixtures.length !== fixtures.length) {
@@ -70,7 +75,9 @@ async function main(sources: string[]) {
7075
},
7176

7277
map: async ({ sample, fixtureName }: WorkItem, index) => {
73-
const fixture = fixtures.find((fixture) => fixture.name === fixtureName);
78+
const fixture = fixtures.find(
79+
(fixture) => fixture.name === fixtureName,
80+
);
7481

7582
try {
7683
await fixture?.runWithSample(sample, index, tests.length);

0 commit comments

Comments
 (0)