|
1 | | -import { describe, expect, it } from "vitest"; |
| 1 | +import { expect, test } from "vitest"; |
2 | 2 | import { SCAD_EXT, THEMES } from "../src/core"; |
3 | | -import { createTestInstance, DISABLE_OPENSCAD } from "./_setup/eleventy"; |
| 3 | +import { createTestInstance } from "./_setup/eleventy"; |
4 | 4 |
|
5 | | -const cases = THEMES.map((t) => [t]); |
| 5 | +const CASES = THEMES.map((t) => [t]); |
6 | 6 |
|
7 | | -describe.for(cases)("%s", ([theme]) => { |
| 7 | +test.concurrent.for(CASES)("%s", async ([theme]) => { |
8 | 8 | const themeURL = `https://www.w3.org/StyleSheets/Core/${theme}`; |
9 | 9 |
|
10 | 10 | const eleventy = createTestInstance({ |
11 | 11 | launchPath: "nightly", |
12 | 12 | theme, |
| 13 | + noSTL: true, |
13 | 14 | silent: true, |
14 | | - ...DISABLE_OPENSCAD, |
15 | 15 | }); |
16 | 16 |
|
17 | | - it("has the CSS URL in page", async () => { |
18 | | - const pages = await eleventy.toJSON(); |
19 | | - const scadPages = pages.filter((p) => p.inputPath.endsWith(SCAD_EXT)); |
| 17 | + const pages = await eleventy.toJSON(); |
| 18 | + const scadPages = pages.filter((p) => p.inputPath.endsWith(SCAD_EXT)); |
20 | 19 |
|
21 | | - expect(scadPages).toHaveLength(3); |
22 | | - for (const page of scadPages) { |
23 | | - expect(page.content.includes(themeURL)).toBeTruthy(); |
24 | | - } |
25 | | - }); |
| 20 | + expect(scadPages).toHaveLength(3); |
| 21 | + for (const page of scadPages) { |
| 22 | + expect(page.content).includes(themeURL); |
| 23 | + } |
26 | 24 | }); |
0 commit comments