Skip to content

Commit

Permalink
test: add basic tests
Browse files Browse the repository at this point in the history
Add more tests when mock-fetch is working.
  • Loading branch information
Symbitic committed Aug 26, 2021
1 parent c50a2c7 commit 05ae0a5
Show file tree
Hide file tree
Showing 5 changed files with 6,049 additions and 9,353 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ or

yarn add spotify-web-playback

Deno or web browser users can use:
Web browsers can use:

```javascript
import Spotify from 'https://esm.sh/spotify-web-playback';
Expand Down
11 changes: 11 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
moduleDirectories: ['node_modules', 'src', './'],
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx'],
testEnvironment: 'jsdom',
testMatch: ["**/__tests__/**/*.+(ts|tsx|js)", "**/?(*.)+(spec|test).+(ts|tsx|js)"],
testURL: 'http://localhost:8989/',
verbose: false,
transform: {
"^.+\\.(ts|tsx)$": "ts-jest",
},
};
Loading

0 comments on commit 05ae0a5

Please sign in to comment.