Skip to content

Commit 97cd715

Browse files
committed
chore: update
1 parent 7b4d661 commit 97cd715

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

biome.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"linter": {
5050
"enabled": true,
5151
"ignore": [
52+
"**/.rslib/*",
5253
"./tests/integration/**/*/src/*",
5354
"./tests/e2e/react-component/public/umd/*"
5455
],

scripts/dictionary.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ rspress
110110
rstack
111111
selfsign
112112
selfsigned
113+
shiki
114+
shikijs
113115
sirv
114116
sokra
115117
speedscope

tests/e2e/react-component/index.pw.test.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
import assert from 'node:assert';
2-
import fs from 'node:fs';
3-
import path from 'node:path';
42
import { type Page, expect, test } from '@playwright/test';
53
import { dev } from 'test-helper/rsbuild';
64

7-
function getCwdByExample(exampleName: string) {
8-
return path.join(__dirname, '../../../examples', exampleName);
9-
}
10-
115
async function counterCompShouldWork(page: Page) {
126
const h2El = page.locator('h2');
137
await expect(h2El).toHaveText('Counter: 0');
@@ -101,14 +95,6 @@ test('should render example "react-component-bundle-false" successfully', async
10195
test('should render example "react-component-umd" successfully', async ({
10296
page,
10397
}) => {
104-
const umdPath = path.resolve(
105-
getCwdByExample('react-component-umd'),
106-
'./dist/umd/index.js',
107-
);
108-
fs.mkdirSync(path.resolve(__dirname, './public/umd'), { recursive: true });
109-
fs.copyFileSync(umdPath, path.resolve(__dirname, './public/umd/index.js'));
110-
fs.copyFileSync(umdPath, path.resolve(__dirname, './public/umd/index.css'));
111-
11298
const rsbuild = await dev({
11399
cwd: __dirname,
114100
page,

0 commit comments

Comments
 (0)