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