From acd1ee2997cad6fecd2f556c203804a908922713 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Wed, 15 Jan 2025 12:58:23 +0800 Subject: [PATCH] test: update test usage --- packages/compat/test/fixtures.test.ts | 2 +- packages/transformers/test/fixtures.test.ts | 18 +++++++++--------- packages/twoslash/test/fixtures.test.ts | 2 +- .../vitepress-twoslash/test/fixtures.test.ts | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/compat/test/fixtures.test.ts b/packages/compat/test/fixtures.test.ts index adafa862..9411f8da 100644 --- a/packages/compat/test/fixtures.test.ts +++ b/packages/compat/test/fixtures.test.ts @@ -6,7 +6,7 @@ import { describe, expect, it } from 'vitest' import getHighlighter from '../src' describe('fixtures', () => { - const files = import.meta.glob('./input/*.*', { as: 'raw', eager: true }) + const files = import.meta.glob('./input/*.*', { query: '?raw', import: 'default', eager: true }) const filter = process.env.FILTER Object .entries(files) diff --git a/packages/transformers/test/fixtures.test.ts b/packages/transformers/test/fixtures.test.ts index 5ea13232..bc3ef5de 100644 --- a/packages/transformers/test/fixtures.test.ts +++ b/packages/transformers/test/fixtures.test.ts @@ -60,7 +60,7 @@ body { margin: 0; } suite( 'diff', - import.meta.glob('./fixtures/diff/*.*', { as: 'raw', eager: true }), + import.meta.glob('./fixtures/diff/*.*', { query: '?raw', import: 'default', eager: true }), [transformerNotationDiff(), transformerRemoveLineBreak()], code => `${code}