Skip to content

Build your personal knowledge base with Trilium Notes

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.md
index 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 tear
down** 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 suitable
test editor; editor/command created in `beforeEach` and **destroyed** in `afterEach` (plus DOM
cleanup); model/view asserted via `_getModelData`/`_getViewData` + `toEqual` with correct
`[]`/`{}` selection syntax; spies via `vi`; behavior covered for collapsed **and** ranged
diff --git a/.claude/skills/ckeditor5-testing/references/migration-from-karma.md b/.claude/skills/ckeditor5-testing/references/migration-from-karma.md
index 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 the
codebase 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.