(input: string)
| 16 | await fse.remove(cacheDirectory); |
| 17 | |
| 18 | const getBuildConfig = (input: string) => { |
| 19 | fs.writeFileSync(testDepsPath, input); |
| 20 | return { |
| 21 | config: { |
| 22 | tools: { |
| 23 | bundlerChain: (chain) => { |
| 24 | if (input === 'foo') { |
| 25 | chain.resolve.extensions.prepend('.test.js'); |
| 26 | } |
| 27 | }, |
| 28 | }, |
| 29 | performance: { |
| 30 | buildCache: { |
| 31 | cacheDirectory, |
| 32 | buildDependencies: [testDepsPath], |
| 33 | }, |
| 34 | }, |
| 35 | } as RsbuildConfig, |
| 36 | }; |
| 37 | }; |
| 38 | |
| 39 | // first build without cache |
| 40 | let rsbuild = await build(getBuildConfig('')); |
no outgoing calls
no test coverage detected
searching dependent graphs…