Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit ff62de0

Browse files
authored
Merge pull request #217 from asigloo/feature/unit-test
Feature/unit test & E2E
2 parents b63076f + 571f6af commit ff62de0

File tree

90 files changed

+12731
-6409
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+12731
-6409
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
dist/
2+
*.config.js

.eslintrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,14 @@ module.exports = {
3535
jest: true,
3636
},
3737
},
38+
{
39+
files: [
40+
'**/__tests__/*.{j,t}s?(x)',
41+
'**/tests/unit/**/*.spec.{j,t}s?(x)',
42+
],
43+
env: {
44+
jest: true,
45+
},
46+
},
3847
],
3948
};

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ jobs:
1717
node-version: 12
1818
- name: Install dependencies
1919
run: npm ci
20+
- name: Run unit tests
21+
run: npm run test --verbose
2022
- name: Build Library
2123
run: npm run build

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
node-version: 12
1818
- name: Install dependencies
1919
run: npm ci
20+
- name: Run unit tests
21+
run: npm run test --verbose
22+
- name: Run e2e
23+
run: npm run test:e2e
2024
- name: Build Library
2125
run: npm run build
2226
- name: Build Types Declarations

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname $0)/_/husky.sh"
3+
4+
npm run lint

.husky/pre-push

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname $0)/_/husky.sh"
3+
4+
npm test

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.vuegenerator
33
.eslintrc.js
44
.eslintignore
5+
.husky
56
netlify.toml
67
jest.config.js
78
babel.config.js

.nyc_output/out.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

cypress.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"baseUrl": "http://localhost:6044",
3+
"pluginsFile": "tests/e2e/plugins/index.js",
4+
"testFiles": "**/*.e2e.js*"
5+
}

0 commit comments

Comments
 (0)