chore: Make sure copyright header comment includes license #8783
+985
−323
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #8666
scripts/checkCopyrightHeaders.js
scripts/checkCopyrightHeaders.js
Replace obsolete license:
packages/jest-circus/runner.js
packages/jest-circus/src/__mocks__/testEventHandler.ts
packages/jest-circus/src/__mocks__/testUtils.ts
packages/jest-circus/src/__tests__/afterAll.test.ts
packages/jest-circus/src/__tests__/baseTest.test.ts
packages/jest-circus/src/__tests__/hooks.test.ts
packages/jest-core/src/SnapshotInteractiveMode.ts
packages/jest-runtime/src/__tests__/defaultResolver.js
packages/jest-runtime/src/__tests__/test_root/sourcemaps/out/throwing-mapped-fn.js
packages/jest-runtime/src/__tests__/test_root/sourcemaps/throwing-mapped-fn.js
Draft multi-line criterion failed because of line endings, but I did not update yet:
packages/expect/src/__tests__/__arbitraries__/sharedSettings.ts
packages/expect/src/__tests__/matchers-toContain.property.test.ts
packages/expect/src/__tests__/matchers-toContainEqual.property.test.ts
packages/expect/src/__tests__/matchers-toEqual.property.test.ts
packages/expect/src/__tests__/matchers-toStrictEqual.property.test.ts
Draft multi-line criterion found error extra
All rights reserved.
line:packages/jest-docblock/src/__tests__/index.test.ts
packages/jest-haste-map/src/lib/__tests__/fast_path.test.js
packages/jest-haste-map/src/lib/__tests__/getPlatformExtension.test.js
packages/jest-haste-map/src/lib/__tests__/normalizePathSep.test.js
packages/jest-repl/src/cli/repl.ts
website/siteConfig.js
Question: What do you think?
Test plan
Updated 9 snapshots because line numbers increase by 5:
e2e/__tests__/beforeAllFiltered.ts
e2e/__tests__/beforeEachQueue.ts
e2e/__tests__/coverageRemapping.test.ts
e2e/__tests__/detectOpenHandles.ts
e2e/__tests__/failures.test.ts
e2e/__tests__/processExit.test.ts
e2e/__tests__/resolveNoFileExtensions.test.ts
packages/jest-core/src/__tests__/watch.test.js
Residue: tests passes even though
packages/jest-runtime/src/__tests__/test_root/sourcemaps/out/throwing-mapped-fn.js.map
still has obsolete license comment