You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.md
+12-2
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,15 @@ Thanks for contributing to MagicMirror²!
4
4
5
5
We hold our code to standard, and these standards are documented below.
6
6
7
+
## Linters
8
+
7
9
If you wish to run our linters, use `npm run lint` without any arguments.
8
10
9
11
### JavaScript: Run ESLint
10
12
11
13
We use [ESLint](https://eslint.org) on our JavaScript files.
12
14
13
-
Our ESLint configuration is in our .eslintrc.json and .eslintignore files.
15
+
Our ESLint configuration is in our `.eslintrc.json` and `.eslintignore` files.
14
16
15
17
To run ESLint, use `npm run lint:js`.
16
18
@@ -20,7 +22,15 @@ We use [StyleLint](https://stylelint.io) to lint our CSS. Our configuration is i
20
22
21
23
To run StyleLint, use `npm run lint:css`.
22
24
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`.
0 commit comments