Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Upgrade jest to fix current node 11 build #7413

Merged
merged 2 commits into from Mar 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion jest.config.js
Expand Up @@ -14,7 +14,7 @@ module.exports = {
'!**/test/',
'!**/scripts/',
],
setupTestFrameworkScriptFile: './lighthouse-core/test/test-utils.js',
setupFilesAfterEnv: ['./lighthouse-core/test/test-utils.js'],
testEnvironment: 'node',
testMatch: [
'**/lighthouse-core/**/*-test.js',
Expand Down
4 changes: 2 additions & 2 deletions lighthouse-core/test/computed/manifest-values-test.js
Expand Up @@ -66,7 +66,7 @@ describe('ManifestValues computed artifact', () => {
assert.equal(results.allChecks.every(i => i.passing), true, 'not all checks passed');
});

describe('color checks', async () => {
describe('color checks', () => {
it('fails when a minimal manifest contains no background_color', async () => {
const WebAppManifest = noUrlManifestParser(JSON.stringify({
start_url: '/',
Expand Down Expand Up @@ -120,7 +120,7 @@ describe('ManifestValues computed artifact', () => {
});
});

describe('icons checks', async () => {
describe('icons checks', () => {
describe('icons exist check', () => {
it('fails when a manifest contains no icons array', async () => {
const manifestSrc = JSON.stringify({
Expand Down
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -81,7 +81,7 @@
"@types/google.analytics": "0.0.39",
"@types/inquirer": "^0.0.35",
"@types/intl-messageformat": "^1.3.0",
"@types/jest": "^23.3.10",
"@types/jest": "^24.0.9",
"@types/jpeg-js": "^0.3.0",
"@types/lodash.isequal": "^4.5.2",
"@types/make-dir": "^1.0.3",
Expand Down Expand Up @@ -115,7 +115,7 @@
"glob": "^7.1.3",
"idb-keyval": "2.2.0",
"intl": "^1.2.5",
"jest": "^23.6.0",
"jest": "^24.3.0",
"jsdom": "^12.2.0",
"make-dir": "^1.3.0",
"mocha": "^3.2.0",
Expand Down Expand Up @@ -143,6 +143,7 @@
"inquirer": "^3.3.0",
"intl-messageformat": "^2.2.0",
"intl-messageformat-parser": "^1.4.0",
"jest-mock": "^24.3.0",
"jpeg-js": "0.1.2",
"js-library-detector": "^5.1.0",
"lighthouse-logger": "^1.2.0",
Expand Down