Skip to content

Commit 05ae0a5

Browse files
committed
test: add basic tests
Add more tests when mock-fetch is working.
1 parent c50a2c7 commit 05ae0a5

File tree

5 files changed

+6049
-9353
lines changed

5 files changed

+6049
-9353
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ or
1818

1919
yarn add spotify-web-playback
2020

21-
Deno or web browser users can use:
21+
Web browsers can use:
2222

2323
```javascript
2424
import Spotify from 'https://esm.sh/spotify-web-playback';

jest.config.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
moduleDirectories: ['node_modules', 'src', './'],
3+
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx'],
4+
testEnvironment: 'jsdom',
5+
testMatch: ["**/__tests__/**/*.+(ts|tsx|js)", "**/?(*.)+(spec|test).+(ts|tsx|js)"],
6+
testURL: 'http://localhost:8989/',
7+
verbose: false,
8+
transform: {
9+
"^.+\\.(ts|tsx)$": "ts-jest",
10+
},
11+
};

0 commit comments

Comments
 (0)