Skip to content

Commit 3545913

Browse files
authored
Merge pull request #4 from bumble-org:migrate-to-extend-chrome
Closes #3
2 parents ed5fbdb + 37f5e64 commit 3545913

File tree

3 files changed

+23
-16
lines changed

3 files changed

+23
-16
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# **Change Log** 📜📝
22

3-
All notable changes to "**@bumble/jest-chrome**" library will be
3+
All notable changes to "**jest-chrome**" library will be
44
documented in this file.
55

66
The format is based on

README.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
1-
# `@bumble/jest-chrome`
1+
# `jest-chrome`
22

33
A complete mock of the Chrome API for Chrome extensions, for use
44
with Jest.
55

6-
The `chrome` object is based on schemas from the Chromium
7-
project, with thanks to
8-
[`sinon-chrome`](https://github.com/acvetkov/sinon-chrome) for
9-
compiling the schemas.
10-
116
TypeScript support is built in. Each function and event is based
12-
on
13-
[`@types/chrome`](https://www.npmjs.com/package/@types/chrome).
7+
on the
8+
[`@types/chrome`](https://www.npmjs.com/package/@types/chrome)
9+
package.
1410

1511
## Installation
1612

1713
```sh
18-
npm i @bumble/jest-chrome -D
14+
npm i jest-chrome -D
1915
```
2016

2117
Set `chrome` in the global scope during setup so that it is
@@ -36,14 +32,14 @@ Use the setup file to assign the mocked `chrome` object to the
3632
```javascript
3733
// jest.setup.js
3834

39-
Object.assign(global, require('@bumble/jest-chrome'))
35+
Object.assign(global, require('jest-chrome'))
4036
```
4137

42-
Import `chrome` from `@bumble/jest-chrome` for Intellisense and
43-
linting. This is the same object as `chrome` in the global scope.
38+
Import `chrome` from `jest-chrome` for Intellisense and linting.
39+
This is the same object as `chrome` in the global scope.
4440

4541
```javascript
46-
import { chrome } from '@bumble/jest-chrome'
42+
import { chrome } from 'jest-chrome'
4743
```
4844

4945
## Usage
@@ -201,3 +197,13 @@ test('chrome api functions with lastError', () => {
201197
expect(chrome.runtime.lastError).toBeUndefined()
202198
})
203199
```
200+
201+
### Contributions
202+
203+
The `chrome` object is based on schemas from the Chromium
204+
project, with thanks to
205+
[`sinon-chrome`](https://github.com/acvetkov/sinon-chrome) for
206+
compiling the schemas.
207+
208+
Special thanks to [@shellscape](https://github.com/shellscape)
209+
for transferring the NPM package name `jest-chrome` to us!

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@bumble/jest-chrome",
2+
"name": "jest-chrome",
33
"version": "0.5.3",
44
"description": "Test Chrome extensions with Jest. A complete mock of the Chrome API.",
55
"keywords": [
@@ -12,7 +12,8 @@
1212
"test",
1313
"typescript"
1414
],
15-
"repository": "bumble-org/jest-chrome",
15+
"repository": "github:extend-chrome/jest-chrome",
16+
"bugs": "https://github.com/extend-chrome/jest-chrome/issues",
1617
"license": "MIT",
1718
"author": "Jack Steam <jacksteamdev@gmail.com>",
1819
"main": "lib/index.cjs.js",

0 commit comments

Comments
 (0)