Skip to content

Commit

Permalink
Update Test class after GitHub Actions Build Failed again as issue of…
Browse files Browse the repository at this point in the history
… Change Jest Library Behaviour Update from version 27 [jestjs/jest#11404]
  • Loading branch information
ahmed-hamdy90 committed Apr 22, 2022
1 parent b58fe6c commit 364cacf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __test__/game.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const Game = require('../src/game').default
const fs = require('fs')

describe('App', () => {
it('Contains the compiled JavaScript', async (done) => {
it('Contains the compiled JavaScript', (done) => {
fs.readFile('./public/main.js', 'utf8', (err, data) => {
expect(err).toBe(null)
expect(data).toMatchSnapshot()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@babel/register": "^7.9.0",
"babel-jest": "^24.9.0",
"babel-jest": "^27.*",
"babel-loader": "^8.0.5",
"html-webpack-plugin": "^3.2.0",
"script-ext-html-webpack-plugin": "^2.1.3",
Expand Down

0 comments on commit 364cacf

Please sign in to comment.