Skip to content

Commit 3063479

Browse files
test: fix windows.
1 parent 903efcb commit 3063479

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/css/test/css.autoStable.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
import assert from 'node:assert/strict'
22
import path from 'node:path'
3+
import { fileURLToPath } from 'node:url'
34
import test from 'node:test'
45

56
import { cssWithMeta } from '../src/css.js'
67
import type { LightningVisitor } from '../src/helpers.js'
78
import type { SelectorComponent } from 'lightningcss'
89

910
const fixturesDir = path.resolve(
10-
path.dirname(new URL(import.meta.url).pathname),
11+
path.dirname(fileURLToPath(import.meta.url)),
1112
'fixtures',
1213
'auto-stable',
1314
'plain',
1415
)
1516
const modulesDir = path.resolve(
16-
path.dirname(new URL(import.meta.url).pathname),
17+
path.dirname(fileURLToPath(import.meta.url)),
1718
'fixtures',
1819
'auto-stable',
1920
'modules',

0 commit comments

Comments
 (0)