Skip to content

Commit f216476

Browse files
committed
Run tests and coverage on .mjs files
This commit prioritizes the upcoming ESM modules by running the tests and coverage on the ESM build with `.mjs` files.
1 parent 22f57cf commit f216476

File tree

5 files changed

+35
-6
lines changed

5 files changed

+35
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- **[Fix]** Fix message host resolution (API change).
55
- **[Fix]** Mark `isFavorite` in `ContactGroup` as optional.
66
- **[Fix]** Mark `name` in `ContactProfile` as optional.
7+
- **[Internal]** Run tests and coverage on `.mjs` files.
78

89
# 0.0.14 (2018-01-12)
910

gulpfile.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ const test: buildTools.MochaTarget = {
8484
scripts: ["test/**/*.ts", "lib/**/*.ts"],
8585
customTypingsDir: "src/custom-typings",
8686
tsconfigJson: "src/test/tsconfig.json",
87+
outModules: buildTools.OutModules.Mjs,
8788
tscOptions: {
8889
skipLibCheck: true,
8990
},

package-lock.json

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

package.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"cheerio": "^1.0.0-rc.2",
4242
"incident": "^3.1.0",
4343
"js-sha256": "^0.9.0",
44-
"kryo": "^0.6.0-build.161",
44+
"kryo": "^0.6.0",
4545
"lodash": "^4.17.4",
4646
"request": "^2.83.0",
4747
"tough-cookie": "^2.3.3"
@@ -63,6 +63,21 @@
6363
"ts-node": "^4.0.0",
6464
"tslint": "^5.8.0",
6565
"turbo-gulp": "^0.16.0",
66-
"typescript": "2.7.0-dev.20180109"
66+
"typescript": "^2.7.0-rc"
67+
},
68+
"nyc": {
69+
"include": [
70+
"build/test/lib/**/*.mjs"
71+
],
72+
"reporter": [
73+
"text",
74+
"html"
75+
],
76+
"extension": [
77+
".mjs"
78+
]
79+
},
80+
"@std/esm": {
81+
"esm": "cjs"
6782
}
6883
}

yarn.lock

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3109,7 +3109,7 @@ kind-of@^6.0.0, kind-of@^6.0.2:
31093109
version "6.0.2"
31103110
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051"
31113111

3112-
kryo@^0.6.0-build.161:
3112+
kryo@^0.6.0:
31133113
version "0.6.0"
31143114
resolved "https://registry.yarnpkg.com/kryo/-/kryo-0.6.0.tgz#e0ca4f357e77dddd02e103d028a25a225582cd3c"
31153115
dependencies:
@@ -5422,6 +5422,10 @@ [email protected]:
54225422
version "2.7.0-dev.20180109"
54235423
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.7.0-dev.20180109.tgz#8ffb23a38903b7ba7abff12b7d5c10dc2675c987"
54245424

5425+
typescript@^2.7.0-rc:
5426+
version "2.7.0-rc"
5427+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.7.0-rc.tgz#bf86a065a3a0be1e072c3fb7d64e8976f33b8365"
5428+
54255429
uglify-js@^2.6, uglify-js@^2.6.1, uglify-js@^2.8.29:
54265430
version "2.8.29"
54275431
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd"

0 commit comments

Comments
 (0)