Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 6a63494

Browse files
SerayaErynForbesLindesay
authored andcommittedFeb 11, 2019
chore: update dev dependencies (pugjs#3108)
* update lerna * update jest * update coveralls * add node 10 & 11 to travis ci * removed node 4 from travis ci
1 parent 74d26d6 commit 6a63494

File tree

17 files changed

+5269
-3249
lines changed

17 files changed

+5269
-3249
lines changed
 

‎.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
language: node_js
22
node_js:
3-
- "4"
43
- "6"
54
- "8"
5+
- "10"
6+
- "11"
67

78
# Use faster Docker architecture on Travis.
89
sudo: false

‎lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"lerna": "2.9.0",
2+
"lerna": "3.10.8",
33
"packages": ["packages/*"],
44
"npmClient": "yarn",
55
"useWorkspaces": true,

‎package.json

+7-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "pug-monorepo",
33
"private": true,
44
"devDependencies": {
5-
"coveralls": "^2.11.2",
6-
"jest": "^18.1.0",
7-
"lerna": "2.9.0",
5+
"coveralls": "3.0.2",
6+
"jest": "24.0.0",
7+
"lerna": "3.10.8",
88
"prettier": "^1.3.1"
99
},
1010
"repository": {
@@ -18,7 +18,7 @@
1818
"pretest": "lerna run pretest",
1919
"test": "jest",
2020
"coverage": "jest --coverage",
21-
"coveralls": "npm run coverage && cat ./coverage/lcov.info | coveralls",
21+
"coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls",
2222
"watch": "jest --watch"
2323
},
2424
"jest": {
@@ -29,5 +29,7 @@
2929
]
3030
},
3131
"license": "MIT",
32-
"workspaces": ["packages/*"]
32+
"workspaces": [
33+
"packages/*"
34+
]
3335
}

‎packages/pug-filters/test/__snapshots__/filter-aliases.test.js.snap

+17-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
exports[`test filters can be aliased 1`] = `
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`filters can be aliased 1`] = `
24
Object {
35
"filename": "<basedir>/packages/pug-filters/test/filter-aliases.test.js",
46
"line": 0,
@@ -67,7 +69,10 @@ Object {
6769
"line": 3,
6870
"name": "minify",
6971
"type": "Text",
70-
"val": "function myFunc(n){return n}",
72+
"val": "function myFunc(n) {
73+
return n;
74+
}
75+
",
7176
},
7277
],
7378
"type": "Block",
@@ -95,7 +100,7 @@ Object {
95100
}
96101
`;
97102

98-
exports[`test options are applied before aliases 1`] = `
103+
exports[`options are applied before aliases 1`] = `
99104
Object {
100105
"filename": "<basedir>/packages/pug-filters/test/filter-aliases.test.js",
101106
"line": 0,
@@ -165,8 +170,9 @@ Object {
165170
"name": "minify",
166171
"type": "Text",
167172
"val": "function myFunc(n) {
168-
return n;
169-
}",
173+
return n;
174+
}
175+
",
170176
},
171177
],
172178
"type": "Block",
@@ -237,7 +243,10 @@ Object {
237243
"line": 7,
238244
"name": "uglify-js",
239245
"type": "Text",
240-
"val": "function myFunc(n){return n}",
246+
"val": "function myFunc(n) {
247+
return n;
248+
}
249+
",
241250
},
242251
],
243252
"type": "Block",
@@ -265,11 +274,11 @@ Object {
265274
}
266275
`;
267276
268-
exports[`test we do not support chains of aliases 1`] = `
277+
exports[`we do not support chains of aliases 1`] = `
269278
Object {
270279
"code": "PUG:FILTER_ALISE_CHAIN",
271280
"message": "<basedir>/packages/pug-filters/test/filter-aliases.test.js:3:9
272281
273-
The filter \"minify-js\" is an alias for \"minify\", which is an alias for \"uglify-js\". Pug does not support chains of filter aliases.",
282+
The filter \\"minify-js\\" is an alias for \\"minify\\", which is an alias for \\"uglify-js\\". Pug does not support chains of filter aliases.",
274283
}
275284
`;

0 commit comments

Comments
 (0)