Avoid duplicate injection on MV3 worker restart #304
Annotations
6 errors and 7 warnings
source/lib.test.ts > init > it should register the listeners and start checking permissions:
source/lib.test.ts#L47
AssertionError: expected "queryAdditionalPermissions" to be called at least once
❯ source/lib.test.ts:47:42
|
source/lib.test.ts > init > it should throw if no content scripts exist at all:
source/lib.test.ts#L62
AssertionError: promise resolved "undefined" instead of rejecting
- Expected:
[Error: rejected promise]
+ Received:
undefined
❯ source/lib.test.ts:62:22
|
source/lib.test.ts > init - registerContentScript > should register the manifest scripts on new permissions:
source/lib.test.ts#L69
Error: Snapshot `init - registerContentScript > should register the manifest scripts on new permissions 1` mismatched
- Expected
+ Received
- [MockFunction registerContentScript] {
- "calls": [
- [
- {
- "allFrames": undefined,
- "css": [],
- "excludeMatches": undefined,
- "js": [
- "/script.js",
- ],
- "matches": [
- "https://granted.example.com/*",
- ],
- "runAt": undefined,
- },
- ],
- ],
- "results": [
- {
- "type": "return",
- "value": undefined,
- },
- ],
- }
+ [MockFunction registerContentScript]
❯ source/lib.test.ts:69:37
|
source/lib.test.ts > init - registerContentScript > should register the manifest scripts on multiple new permissions:
source/lib.test.ts#L82
Error: Snapshot `init - registerContentScript > should register the manifest scripts on multiple new permissions 1` mismatched
- Expected
+ Received
- [MockFunction registerContentScript] {
- "calls": [
- [
- {
- "allFrames": undefined,
- "css": [],
- "excludeMatches": undefined,
- "js": [
- "/script.js",
- ],
- "matches": [
- "https://granted.example.com/*",
- ],
- "runAt": undefined,
- },
- ],
- [
- {
- "allFrames": undefined,
- "css": [],
- "excludeMatches": undefined,
- "js": [
- "/script.js",
- ],
- "matches": [
- "https://granted-more.example.com/*",
- ],
- "runAt": undefined,
- },
- ],
- ],
- "results": [
- {
- "type": "return",
- "value": undefined,
- },
- {
- "type": "return",
- "value": undefined,
- },
- ],
- }
+ [MockFunction registerContentScript]
❯ source/lib.test.ts:82:37
|
source/lib.test.ts > init - registerContentScript > should register multiple manifest scripts on new permissions:
source/lib.test.ts#L94
Error: Snapshot `init - registerContentScript > should register multiple manifest scripts on new permissions 1` mismatched
- Expected
+ Received
- [MockFunction registerContentScript] {
- "calls": [
- [
- {
- "allFrames": undefined,
- "css": [],
- "excludeMatches": undefined,
- "js": [
- "/script.js",
- ],
- "matches": [
- "https://granted.example.com/*",
- ],
- "runAt": undefined,
- },
- ],
- [
- {
- "allFrames": undefined,
- "css": [],
- "excludeMatches": undefined,
- "js": [
- "/otherScript.js",
- ],
- "matches": [
- "https://granted.example.com/*",
- ],
- "runAt": undefined,
- },
- ],
- ],
- "results": [
- {
- "type": "return",
- "value": undefined,
- },
- {
- "type": "return",
- "value": undefined,
- },
- ],
- }
+ [MockFunction registerContentScript]
❯ source/lib.test.ts:94:37
|
UnitTest
Process completed with exit code 1.
|
Build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
UnitTest
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Test (tabs, 3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Test (tabs, 2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Test (webNavigation, 3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Test (webNavigation, 2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|