Skip to content

Commit 122de0c

Browse files
committed
fix: the test log
1 parent e217ec4 commit 122de0c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

e2e/cases/doctor-rspack/linter-rule-render.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ test('linter rule render check', async () => {
121121
const page = await context.newPage();
122122

123123
// Navigate to a URL
124-
await page.goto(`file:///${reportPath}`);
125-
core.debug(`reportPath:: ${reportPath}`);
124+
await page.goto(`file:///${reportPath}-${process.env.RSPACK_NATIVE_PLUGIN}`);
125+
core.debug(`reportPath:: ${reportPath}-${process.env.RSPACK_NATIVE_PLUGIN}`);
126126

127127
const ecmaVersionButton = await page.$('[data-node-key="E1004"]');
128128
core.debug(`ecmaVersionButton:: ${ecmaVersionButton}`);

e2e/cases/doctor-rspack/plugin.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,11 @@ test('rspack data store', async () => {
151151
const datas = sdk.getStoreData();
152152
expect(datas.errors.length).toBe(2);
153153
const graphData = datas.moduleGraph;
154-
const configs = datas.configs;
155154

156155
const ecmaCheckError = datas.errors.some((e) => e.code === 'E1004');
157156
expect(ecmaCheckError).toBeTruthy();
158157

159-
core.debug(`graphData.modules: ${graphData.modules}`);
160-
core.debug(`graphData.modules[0]: ${graphData.modules[0]}`);
158+
core.debug(`graphData.modules[0]: ${JSON.stringify(graphData.modules[0])}`);
161159
core.debug(
162160
`graphData.modules[0].webpackId: ${graphData.modules[0].webpackId}`,
163161
);

0 commit comments

Comments
 (0)