Skip to content

Commit f2726a2

Browse files
Sukanya Pandeyrfrandse
authored andcommitted
Add mocha and chai test framework
- Mocha/Chai/Sinon test frameowrk because it has 100% feature parity with vue-loader. - Code for making 'expect' function accessible globally. Signed-off-by: Sukanya Pandey <[email protected]> Change-Id: Idf809cb08d8c1ef177ff92f0ee1be04ac74059a3
1 parent ab9b053 commit f2726a2

File tree

7 files changed

+1765
-1609
lines changed

7 files changed

+1765
-1609
lines changed

.eslintrc.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,18 @@ module.exports = {
1818
parserOptions: {
1919
parser: 'babel-eslint'
2020
},
21+
globals: {
22+
expect: true,
23+
sinon: true
24+
},
2125
overrides: [
2226
{
2327
files: [
2428
'**/__tests__/*.{j,t}s?(x)',
2529
'**/tests/unit/**/*.spec.{j,t}s?(x)'
2630
],
2731
env: {
28-
jest: true
32+
mocha: true
2933
}
3034
}
3135
]

jest.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)