(plugins: readonly AnyPlugin[] | null)
| 25 | } |
| 26 | |
| 27 | const asFixturePlugins = (plugins: readonly AnyPlugin[] | null): readonly FixturePlugin[] => { |
| 28 | // Fixture servers return shapes wider than AnyPlugin (they carry |
| 29 | // __optionsReceived for test assertions); narrow once here. |
| 30 | // oxlint-disable-next-line executor/no-double-cast |
| 31 | return plugins as unknown as readonly FixturePlugin[]; |
| 32 | }; |
| 33 | |
| 34 | const writeJsonc = (name: string, body: string): string => { |
| 35 | const dir = fs.mkdtempSync(path.join(TMP_ROOT, `${name}-`)); |