11import { expect , test } from '@playwright/test' ;
22import { getSDK , setSDK } from '@rsdoctor/core/plugins' ;
33import { compileByRspack } from '@scripts/test-helper' ;
4- import { Compiler , RuleSetRule } from '@rspack/core' ;
4+ import { Compiler } from '@rspack/core' ;
5+ import * as core from '@actions/core' ;
56import os from 'os' ;
67import path from 'path' ;
78import { createRsdoctorPlugin } from './test-utils' ;
@@ -11,10 +12,7 @@ let reportLoaderStartOrEndTimes = 0;
1112async function rspackCompile ( tapName : string , compile : typeof compileByRspack ) {
1213 const file = path . resolve ( __dirname , './fixtures/a.js' ) ;
1314 const loader = path . resolve ( __dirname , './fixtures/loaders/comment.js' ) ;
14- const esmLoader = path . resolve (
15- __dirname ,
16- './fixtures/loaders/esm-serialize-query-to-comment.mjs' ,
17- ) ;
15+
1816 const esmLoaderJs = path . resolve (
1917 __dirname ,
2018 './fixtures/loaders/esm/esm-serialize-query-to-comment.js' ,
@@ -157,6 +155,13 @@ test('rspack data store', async () => {
157155
158156 const ecmaCheckError = datas . errors . some ( ( e ) => e . code === 'E1004' ) ;
159157 expect ( ecmaCheckError ) . toBeTruthy ( ) ;
158+
159+ core . debug ( `graphData.modules: ${ graphData . modules } ` ) ;
160+ core . debug ( `graphData.modules[0]: ${ graphData . modules [ 0 ] } ` ) ;
161+ core . debug (
162+ `graphData.modules[0].webpackId: ${ graphData . modules [ 0 ] . webpackId } ` ,
163+ ) ;
164+
160165 os . EOL === '\n'
161166 ? expect (
162167 graphData . modules [ 0 ] . webpackId . indexOf ( '/fixtures/a.js' ) ,
0 commit comments