super-productivity/packages/plugin-dev/sync-md/jest.config.cjs
Johannes Millan e4f83e3de8 feat(syncMd): add comprehensive test suite and development configuration
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
2025-07-10 14:56:19 +02:00

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',
},
};