Addresses failing test in https://github.com/webrecorder/browsertrix-cloud/pull/1592 by fixing asset imports in unit tests. Unit tests now import an empty string for all assets--note: if we want to test actual asset content, will need to update this config.
12 lines
205 B
JavaScript
12 lines
205 B
JavaScript
/**
|
|
* Use to mock files in tests.
|
|
*
|
|
* Usage in web-test-runner.config.mjs:
|
|
* importMap: {
|
|
* imports: {
|
|
* 'styles.css': '/src/__mocks__/_empty.js'
|
|
* },
|
|
* },
|
|
*/
|
|
export default "";
|