Skip to content

Commit

Permalink
chore: update test code
Browse files Browse the repository at this point in the history
  • Loading branch information
ErKeLost committed Feb 2, 2025
1 parent 411fd85 commit 58b2bb1
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions examples/arco-pro/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,17 @@ describe(`e2e tests - ${name}`, async () => {

// browser HMR should work
if (command === 'start') {
const filePath = fileURLToPath(
path.join(
path.dirname(import.meta.url),
'src',
'pages',
'dashboard',
'workplace',
'docs.tsx'
)
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const filePath = path.join(
__dirname,
'src',
'pages',
'dashboard',
'workplace',
'docs.tsx'
);

const content = readFileSync(filePath, 'utf-8');
writeFileSync(
filePath,
Expand Down

0 comments on commit 58b2bb1

Please sign in to comment.