mirror of
https://github.com/docsifyjs/docsify.git
synced 2026-10-25 01:15:50 +08:00
35 lines
1.1 KiB
JavaScript
35 lines
1.1 KiB
JavaScript
// TODO: Enable testPathIgnorePatterns after first unit test is in place
|
|
|
|
// Jest-Playwrigth Config
|
|
process.env.JEST_PLAYWRIGHT_CONFIG =
|
|
'./tests/e2e/config/jest-playwright.config.js';
|
|
|
|
module.exports = {
|
|
projects: [
|
|
// Unit Tests (Jest)
|
|
{
|
|
displayName: 'unit',
|
|
setupFilesAfterEnv: ['<rootDir>/tests/jest.setup-tests.js'],
|
|
testMatch: ['<rootDir>/tests/unit/*.test.js'],
|
|
// testPathIgnorePatterns: ['example.test'],
|
|
},
|
|
// Integration Tests (Jest)
|
|
{
|
|
displayName: 'integration',
|
|
setupFilesAfterEnv: ['<rootDir>/tests/jest.setup-tests.js'],
|
|
testMatch: ['<rootDir>/tests/integration/*.test.js'],
|
|
// testPathIgnorePatterns: ['example.test'],
|
|
},
|
|
// E2E Tests (Jest + Playwright)
|
|
{
|
|
displayName: 'e2e',
|
|
globalSetup: './tests/e2e/config/jest.setup.js',
|
|
globalTeardown: './tests/e2e/config/jest.teardown.js',
|
|
preset: 'jest-playwright-preset',
|
|
setupFilesAfterEnv: ['<rootDir>/tests/jest.setup-tests.js'],
|
|
testMatch: ['<rootDir>/tests/e2e/*.test.js'],
|
|
// testPathIgnorePatterns: ['example.test'],
|
|
},
|
|
],
|
|
};
|