Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,17 @@ If for some reason you want to install the plugin manually:
4. `npm run dev` will watch for changes and build the plugin to `dist/main.js`.
5. copy the `dist/main.js` (or `dist/main-debug.js` if you want the un-minified version) to your Obdisian vault plugin folder (`cp dist/main.js <vault>/.obsidian/plugins/ics/main.js`).
6. Reload the vault or use the [Hot Reload Plugin](https://github.com/pjeby/hot-reload).

### Testing

The plugin includes a test harness for recurring events and timezone handling to prevent regressions:

```bash
# Run all tests
npm test

# Run tests in watch mode (automatically re-runs when files change)
npm run test:watch
```

See `tests/README.md` for information about how to add new tests.
18 changes: 18 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/src', '<rootDir>/tests'],
testMatch: [
'**/__tests__/**/*.ts',
'**/?(*.)+(spec|test).ts'
],
transform: {
'^.+\\.ts$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.d.ts',
],
setupFilesAfterEnv: ['<rootDir>/tests/setup.ts']
};
Loading