Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(skills): drop license-header guidance from the testing skill
Elian Doran78e3d3f3ca96
diff --git a/.claude/skills/ckeditor5-testing/SKILL.md b/.claude/skills/ckeditor5-testing/SKILL.mdindex 8613946eb1..f14d229800 100644--- a/.claude/skills/ckeditor5-testing/SKILL.md+++ b/.claude/skills/ckeditor5-testing/SKILL.md@@ -79,11 +79,6 @@ pnpm run test -- -c --files=core # with coverage## Anatomy of a test```js-/**- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options- */-import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';import { ModelTestEditor } from '@ckeditor/ckeditor5-core/tests/_utils/modeltesteditor.js';import { _setModelData, _getModelData } from '@ckeditor/ckeditor5-engine';@@ -115,8 +110,8 @@ describe( 'ParagraphCommand', () => {```Conventions visible here and across the suite:-- Start with the **license header**. Keep one top-level `describe` named after the unit, with- nested `describe`s for areas (`value`, `execute()`, …) and small focused `it`s.+- Keep one top-level `describe` named after the unit, with nested `describe`s for areas+ (`value`, `execute()`, …) and small focused `it`s.- Create the editor in `beforeEach` (return the Promise — Vitest awaits it). **Always teardown** in `afterEach` (`editor.destroy()`, and remove any DOM element you appended).- Use the lightest test editor that works: `ModelTestEditor` (model only) < `VirtualTestEditor`@@ -167,7 +162,7 @@ expect( spy ).toHaveBeenCalledWith( 'paragraph' );## Quick review checklist-When reviewing tests: license header present; explicit `vitest` imports; lightest suitable+When reviewing tests: explicit `vitest` imports; lightest suitabletest editor; editor/command created in `beforeEach` and **destroyed** in `afterEach` (plus DOMcleanup); model/view asserted via `_getModelData`/`_getViewData` + `toEqual` with correct`[]`/`{}` selection syntax; spies via `vi`; behavior covered for collapsed **and** rangeddiff --git a/.claude/skills/ckeditor5-testing/references/migration-from-karma.md b/.claude/skills/ckeditor5-testing/references/migration-from-karma.mdindex 4ad9b700db..8020febfdd 100644--- a/.claude/skills/ckeditor5-testing/references/migration-from-karma.md+++ b/.claude/skills/ckeditor5-testing/references/migration-from-karma.md@@ -13,7 +13,6 @@ test files still use the old stack. When you touch a legacy test, migrate it. Th- **Add explicit imports** at the top: `import { describe, it, expect, beforeEach, afterEach,vi } from 'vitest';` (the old globals from Mocha/Chai are gone; `globals: true` is set but thecodebase imports explicitly).-- Keep the **license header** comment.- Source imports use the **`.js` extension**: `import { Foo } from '../src/foo.js';`.- Drop any `import { expect } from 'chai'` / Chai plugin setup.@@ -90,7 +89,7 @@ it( '…', () => { vi.spyOn( obj, 'm' ); } );## Checklist for a migrated file-- [ ] License header kept; explicit `vitest` imports added.+- [ ] Explicit `vitest` imports added.- [ ] All `import … from 'chai'` / `sinon` removed; `.js` extensions on source imports.- [ ] Chai matchers → Vitest matchers; `equalMarkup`/`.attribute` rewritten with data helpers.- [ ] Sinon → `vi`; sandbox removed.