mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
Tests: - Markdown parser tests with edge cases and error handling - Task operations generator tests for create/update/delete/reorder - SP to markdown conversion tests with ordering validation - Sync state verification tests - Integration tests for full sync workflows - File utilities tests Configuration: - Jest setup for plugin testing - ESLint and Prettier configuration - Test utilities and mocks
28 lines
763 B
JavaScript
28 lines
763 B
JavaScript
/** @type {import('jest').Config} */
|
|
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'jsdom',
|
|
transform: {
|
|
'^.+\\.tsx?$': [
|
|
'ts-jest',
|
|
{
|
|
tsconfig: {
|
|
module: 'commonjs',
|
|
target: 'es2020',
|
|
esModuleInterop: true,
|
|
allowSyntheticDefaultImports: true,
|
|
jsx: 'preserve',
|
|
jsxImportSource: 'solid-js',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
testMatch: ['**/*.spec.ts', '**/*.test.ts'],
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/src/background/old/'],
|
|
roots: ['<rootDir>/src'],
|
|
setupFilesAfterEnv: ['<rootDir>/src/setupTests.ts'],
|
|
moduleNameMapper: {
|
|
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
},
|
|
};
|