Skip to content

Commit a04f69a

Browse files
committed
test: more templates + test for version warnings
1 parent 1103071 commit a04f69a

30 files changed

Lines changed: 10623 additions & 39 deletions

.editorconfig

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
[*.ts]
1+
[*]
2+
root = true
23
indent_style = space
34
indent_size = 2
5+
charset = utf-8
6+
end_of_line = lf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
49

5-
[*.tsx]
6-
indent_style = space
7-
indent_size = 2
10+
[*.md,*.snap]
11+
trim_trailing_whitespace = false
File renamed without changes.

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,12 +362,15 @@ your Jest configuration:
362362
}
363363
```
364364

365-
By default Jest ignores everything in `node_modules`. This setting prevents Jest from ignoring the package you're interested in, in this case `@foo`, while continuing to ignore everything else in `node_modules`.
365+
By default Jest ignores everything in `node_modules`. This setting prevents Jest from ignoring the package you're interested in, in this case `@foo/bar`, while continuing to ignore everything else in `node_modules`.
366366

367367

368368
## Known Limitations
369+
369370
### Known limitations for TS compiler options
370-
- If you use `"baseUrl": "<path_to_your_sources>"`, you also have to change `jest config` a little bit (also check [Module path mapping](#module-path-mapping) section):
371+
372+
If you use `"baseUrl": "<path_to_your_sources>"`, you also have to change `jest config` a little bit (also check [Module path mapping](#module-path-mapping) section):
373+
371374
```json
372375
"jest": {
373376
"moduleDirectories": ["node_modules", "<path_to_your_sources>"]

e2e/__helpers__/templates.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ export enum PackageSets {
33
babel6 = 'with-babel-6',
44
babel7 = 'with-babel-7',
55
jest22 = 'with-jest-22',
6+
typescript2_7 = 'with-typescript-2-7',
7+
// invalid
8+
unsupportedVersion = 'with-unsupported-version',
69
}
7-
export const allPackageSets = [
10+
export const allValidPackageSets = [
811
PackageSets.default,
912
PackageSets.babel6,
1013
PackageSets.babel7,
1114
PackageSets.jest22,
15+
PackageSets.typescript2_7,
1216
]

e2e/__templates__/default/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/__templates__/default/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"devDependencies": {
66
"@types/jest": "^23.3.1",
77
"jest": "^23.4.2",
8-
"typescript": "^2.9.2"
8+
"typescript": "^3.0.1"
99
}
1010
}

e2e/__templates__/with-babel-6/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/__templates__/with-babel-6/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"babel-core": "^6.26.3",
88
"closest-file-data": "^0.1.4",
99
"jest": "^23.4.2",
10-
"typescript": "^2.9.2"
10+
"typescript": "^3.0.1"
1111
}
1212
}

e2e/__templates__/with-babel-7/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/__templates__/with-babel-7/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"babel-core": "^7.0.0-bridge.0",
99
"closest-file-data": "^0.1.4",
1010
"jest": "^23.4.2",
11-
"typescript": "^2.9.2"
11+
"typescript": "^3.0.1"
1212
}
1313
}

0 commit comments

Comments
 (0)