added packages and basic setup

This commit is contained in:
JesmoDev
2022-05-24 16:14:15 +02:00
parent ab86298695
commit 5655c97f6e
4 changed files with 1903 additions and 1 deletions

View 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>`,
};