1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors_trending-shoelace

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
web-test-runner.config.js 1.5 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Konnor Rogers Отправлено 21.11.2023 19:19 bfa7c4c
import { esbuildPlugin } from '@web/dev-server-esbuild';
import { globbySync } from 'globby';
import { playwrightLauncher } from '@web/test-runner-playwright';
export default {
rootDir: '.',
files: 'src/**/*.test.ts', // "default" group
concurrentBrowsers: 3,
nodeResolve: {
exportConditions: ['production', 'default']
},
testFramework: {
config: {
timeout: 3000,
retries: 1
}
},
plugins: [
esbuildPlugin({
ts: true,
target: 'es2020'
})
],
browsers: [
playwrightLauncher({ product: 'chromium' }),
// Firefox started failing randomly so we're temporarily disabling it here. This could be a rogue test, not really
// sure what's happening.
// playwrightLauncher({ product: 'firefox' }),
playwrightLauncher({ product: 'webkit' })
],
testRunnerHtml: testFramework => `
<html lang="en-US">
<head></head>
<body>
<link rel="stylesheet" href="dist/themes/light.css">
<script>
window.process = {env: { NODE_ENV: "production" }}
</script>
<script type="module" src="${testFramework}"></script>
</body>
</html>
`,
// Create a named group for every test file to enable running single tests. If a test file is `split-panel.test.ts`
// then you can run `npm run test -- --group split-panel` to run only that component's tests.
groups: globbySync('src/**/*.test.ts').map(path => {
const groupName = path.match(/^.*\/(?<fileName>.*)\.test\.ts/).groups.fileName;
return {
name: groupName,
files: path
};
})
};

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors_trending-shoelace.git
git@api.gitlife.ru:oschina-mirror/mirrors_trending-shoelace.git
oschina-mirror
mirrors_trending-shoelace
mirrors_trending-shoelace
next