Skip to content

Commit 0826148

Browse files
committed
- Configure test server for availability with all tests (previously e2e only)
- Create identical docsifyInit() tests using Jest (integration) and Playwright (e2e) - Update docsifyInit() to convert relative URLs to absolute URLs to work in both JSDOM and Playwright - Update docsifyInit() to append style- and js-related tags using createElement instead of insertAdjacentHTML - Update paths in test files to use unified docsifyInit() - Added option to docsifyInit() to enable/disable formatted HTML output to console - Removed vue.css as default docsify theme from docsifyInit() - Removed outdated files
1 parent f3f357c commit 0826148

File tree

15 files changed

+265
-770
lines changed

15 files changed

+265
-770
lines changed

jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ const sharedConfig = {
1111
SRC_PATH: path.resolve(__dirname, 'src'),
1212
TEST_URL,
1313
},
14+
globalSetup: './test/e2e/config/jest.setup.js',
15+
globalTeardown: './test/e2e/config/jest.teardown.js',
1416
resetModules: true,
1517
restoreMocks: true,
1618
};
@@ -41,8 +43,6 @@ module.exports = {
4143
{
4244
...sharedConfig,
4345
displayName: 'e2e',
44-
globalSetup: './test/e2e/config/jest.setup.js',
45-
globalTeardown: './test/e2e/config/jest.teardown.js',
4646
preset: 'jest-playwright-preset',
4747
setupFilesAfterEnv: ['<rootDir>/test/e2e/config/jest.setup-tests.js'],
4848
testMatch: ['<rootDir>/test/e2e/*.test.js'],

0 commit comments

Comments
 (0)