Skip to content

Commit

Permalink
Merge pull request #3 from CudoVentures/Adding-Jest-environment-and-t…
Browse files Browse the repository at this point in the history
…est-structure

Adding Jest and test structure
  • Loading branch information
SpaghettiOverload authored Jun 17, 2022
2 parents c8d3dc8 + dff8e02 commit c88b40b
Show file tree
Hide file tree
Showing 12 changed files with 19,389 additions and 655 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@
- `yarn install`
- `yarn build`
- `yarn dev`

## running Tests
- `yarn test`
27 changes: 27 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = {
presets: [
[
"@babel/preset-env",
{
useBuiltIns: 'entry',
corejs: '2',
targets: {
node: "current",
},
},
],
"@babel/preset-react",
"@babel/preset-typescript",
],
plugins: [
function () {
return {
visitor: {
MetaProperty(path) {
path.replaceWithSourceString('process')
},
},
}
},
],
}
1 change: 1 addition & 0 deletions jest-setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "@testing-library/jest-dom"
Loading

0 comments on commit c88b40b

Please sign in to comment.