JavaScript: Classify __mocks__ and __tests_ as tests.

These are conventions used by jest: https://jestjs.io/docs/en/manual-mocks#mocking-user-modules.
This commit is contained in:
Max Schaefer
2019-08-02 11:09:59 +01:00
parent d83faaf714
commit 97c0c97b28
5 changed files with 12 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
| 1.js:0:0:0:0 | 1.js | generated |
| AutoRest.js:0:0:0:0 | AutoRest.js | generated |
| ManyElementsOnLine.html:0:0:0:0 | ManyElementsOnLine.html | generated |
| __mocks__/test.js:0:0:0:0 | __mocks__/test.js | test |
| __tests__/test.js:0:0:0:0 | __tests__/test.js | test |
| ai.1.2.3-build0123.js:0:0:0:0 | ai.1.2.3-build0123.js | library |
| bundle-directive.js:0:0:0:0 | bundle-directive.js | generated |
| data.js:0:0:0:0 | data.js | generated |

View File

@@ -0,0 +1,3 @@
// the only reason to classify this file as a test is that it is in a folder called `__mocks__`
export function f() {}

View File

@@ -0,0 +1,3 @@
// the only reason to classify this file as a test is that it is in a folder called `__tests__`
export function testF() {}