9aoy
9aoy
> delete style tag & throw `Cannot read properties of undefined (reading 'content')` error in Rsbuild 1.0.4 +1. It can also be reproduced in the rsbuild example. https://github.com/web-infra-dev/rsbuild/tree/main/examples/vue
Did you see the above success words or get an error when executing run new? By the way, I have not reproduced this problem in modern.js 2.48.0. You can try...
@Ghostblad3 Thank you for your suggestion. Currently, when `rstest` executes a test file, it has module caching to prevent redundant file loading. However, between different test files, there is no...
@Ghostblad3 Rstest runs every test file isolated by default. If your project has no side effects, you can set `isolate: false` to turn off isolation to optimize performance (There will...
> Does `isolate: true` will cache all modules loaded for each test so that they are not re-read from disk after a test finish and another one start? When `isolate:...
> Any plans to have built-in generic JUnit reporter? Or is that a subset of "GitHub Actions Reporter" task? Thanks! @slobo it will be built-in. I have updated the roadmap...
> Do you have any plans to replace [storybook vitest addon](https://storybook.js.org/docs/writing-tests/integrations/vitest-addon)? @yf-yang Some features, such as `browser mode`, are not yet supported in Rstest. Once these functionalities are available, we...
> We have several requirements in our repos that leverage Jest-only features (specifically, isolateModules) that makes it impossible for us to easily switch to Vitest. @sgarfinkel `isolateModules` is not yet...
This can be achieved using rspack [NormalModuleReplacementPlugin](https://rspack.rs/plugins/webpack/normal-module-replacement-plugin). ```ts export default defineConfig({ tools: { rspack: (config, { rspack}) => { config.plugins.push( new rspack.NormalModuleReplacementPlugin(/\.(css|less|scss)/, require.resolve('./src/Mocks/styleMock.js')) ); } } }); ```
+1. The `NormalModuleReplacementPlugin` is a bit difficult for users to use. Perhaps it would be simpler for rstest or rsbuild to provide a configuration option similar to `resolve.moduleNameMapper`.