Skip to content

Commit

Permalink
Merge pull request #12 from Sanja969/test-add-remove
Browse files Browse the repository at this point in the history
Jest test for testing class -  Task, add and remove functions
  • Loading branch information
Sanja969 committed Jun 9, 2022
2 parents 7661cd9 + 61a415f commit 811d1c5
Show file tree
Hide file tree
Showing 8 changed files with 12,569 additions and 9,139 deletions.
7 changes: 7 additions & 0 deletions .babelrc
@@ -0,0 +1,7 @@
{
"env": {
"test": {
"plugins": ["@babel/plugin-transform-modules-commonjs"]
}
}
}
4 changes: 3 additions & 1 deletion .eslintrc.json
Expand Up @@ -20,6 +20,8 @@
},
"ignorePatterns": [
"dist/",
"build/"
"build/",
"tests",
"src/__mocks__"
]
}
13 changes: 13 additions & 0 deletions jest.config.js
@@ -0,0 +1,13 @@
// Sync object
/** @type {import('@jest/types').Config.InitialOptions} */
const config = {
verbose: true,
};

module.exports = config;

// Or async function
module.exports = {
testEnvironment: 'jsdom',
setupFiles: ['./tests/localStorageMock.js'],
};

0 comments on commit 811d1c5

Please sign in to comment.