Skip to content

Commit 71a63e5

Browse files
committed
test: use os.tmpdir
1 parent 5fd10b5 commit 71a63e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/plugin-rsc/e2e/basic.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { readFileSync } from 'node:fs'
33
import { type Page, expect, test } from '@playwright/test'
44
import { type Fixture, setupIsolatedFixture, useFixture } from './fixture'
55
import { expectNoReload, testNoJs, waitForHydration } from './helper'
6+
import os from 'node:os'
7+
import path from 'node:path'
68

79
// TODO: parallel?
810
// TODO: all tests don't need to be tested in all variants?
@@ -109,7 +111,7 @@ test.describe.only(() => {
109111
// disabled by default
110112
// if (process.env.TEST_ISOLATED !== 'true') return
111113

112-
let tmpRoot = '/tmp/test-vite-rsc'
114+
let tmpRoot = path.join(os.tmpdir(), 'test-vite-rsc')
113115
test.beforeAll(async () => {
114116
await setupIsolatedFixture({ src: 'examples/basic', dest: tmpRoot })
115117
// try {

0 commit comments

Comments
 (0)