Skip to content

Commit c4d2a7b

Browse files
authored
Merge pull request MagicMirrorOrg#2751 from KristjanESPERANTO/patch-1
Add End-to-End Testing + Format
2 parents 4ad832d + 855860c commit c4d2a7b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/CONTRIBUTING.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ Thanks for contributing to MagicMirror²!
44

55
We hold our code to standard, and these standards are documented below.
66

7+
## Linters
8+
79
If you wish to run our linters, use `npm run lint` without any arguments.
810

911
### JavaScript: Run ESLint
1012

1113
We use [ESLint](https://eslint.org) on our JavaScript files.
1214

13-
Our ESLint configuration is in our .eslintrc.json and .eslintignore files.
15+
Our ESLint configuration is in our `.eslintrc.json` and `.eslintignore` files.
1416

1517
To run ESLint, use `npm run lint:js`.
1618

@@ -20,7 +22,15 @@ We use [StyleLint](https://stylelint.io) to lint our CSS. Our configuration is i
2022

2123
To run StyleLint, use `npm run lint:css`.
2224

23-
### Submitting Issues
25+
## Testing
26+
27+
We use [Jest](https://jestjs.io) for JavaScript testing.
28+
29+
To run all tests, use `npm run test`.
30+
31+
The specific test commands are defined in `package.json`. So you can also run the specific tests with other commands, e.g. `npm run test:unit` or `npx jest tests/e2e/env_spec.js`.
32+
33+
## Submitting Issues
2434

2535
Please only submit reproducible issues.
2636

0 commit comments

Comments
 (0)