Skip to content

Commit 80a7c54

Browse files
authored
add jest
2 parents 7d8925c + 3795698 commit 80a7c54

File tree

8 files changed

+7767
-649
lines changed

8 files changed

+7767
-649
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@
33
A guessing game built with React and bundled using Vite.
44

55
Try it now: https://ambrozy.github.io/iguessgame/
6+
7+
## Running tests
8+
9+
```bash
10+
npm test
11+
```

babel.config.cjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
['@babel/preset-env', { targets: { node: 'current' } }]
4+
],
5+
};

jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
testEnvironment: 'node'
3+
};

0 commit comments

Comments
 (0)