added packages and basic setup
This commit is contained in:
19
src/Umbraco.Web.UI.Client/web-test-runner.config.mjs
Normal file
19
src/Umbraco.Web.UI.Client/web-test-runner.config.mjs
Normal file
@@ -0,0 +1,19 @@
|
||||
import { esbuildPlugin } from '@web/dev-server-esbuild';
|
||||
import { playwrightLauncher } from '@web/test-runner-playwright';
|
||||
|
||||
export default {
|
||||
nodeResolve: true,
|
||||
files: 'src/**/*.test.ts',
|
||||
plugins: [esbuildPlugin({ ts: true, target: 'auto' })],
|
||||
browsers: [
|
||||
playwrightLauncher({ product: 'chromium' }),
|
||||
playwrightLauncher({ product: 'firefox' }),
|
||||
playwrightLauncher({ product: 'webkit' }),
|
||||
],
|
||||
testRunnerHtml: (testFramework) =>
|
||||
`<html>
|
||||
<body>
|
||||
<script type="module" src="${testFramework}"></script>
|
||||
</body>
|
||||
</html>`,
|
||||
};
|
||||
Reference in New Issue
Block a user