mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-14 10:35:11 +00:00
build(deps): bump jest and @types/jest (#1131)
* build(deps): bump jest and @types/jest Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest) and [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest). These dependencies needed to be updated together. Updates `jest` from 28.1.3 to 29.0.3 - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/commits/v29.0.3/packages/jest) Updates `@types/jest` from 28.1.8 to 29.0.1 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) --- updated-dependencies: - dependency-name: jest dependency-type: direct:production update-type: version-update:semver-major - dependency-name: "@types/jest" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * [dependabot skip] Fix yarn.lock * update test snapshots for jest 29 Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot-fix <dependabot-fix@example.com> Co-authored-by: David Lechner <david@pybricks.com>
This commit is contained in:
co-authored by
dependabot-fix
David Lechner
parent
2c88b81d54
commit
9994e8f4b4
+2
-2
@@ -26,7 +26,7 @@
|
||||
"@testing-library/react": "^12.1.5",
|
||||
"@testing-library/user-event": "^14.4.3",
|
||||
"@types/file-saver": "^2.0.5",
|
||||
"@types/jest": "^28.1.8",
|
||||
"@types/jest": "^29.0.1",
|
||||
"@types/node": "^16.11.7",
|
||||
"@types/react": "^16.14.24",
|
||||
"@types/react-dom": "^16.9.14",
|
||||
@@ -64,7 +64,7 @@
|
||||
"fs-extra": "^10.0.0",
|
||||
"html-webpack-plugin": "^5.5.0",
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
"jest": "^28.1.3",
|
||||
"jest": "^29.0.3",
|
||||
"jest-environment-jsdom": "^29.0.3",
|
||||
"jest-mock-extended": "^2.0.7",
|
||||
"jest-resolve": "^29.0.0",
|
||||
|
||||
@@ -20,7 +20,7 @@ type State = ReturnType<typeof reducers>;
|
||||
|
||||
test('initial state', () => {
|
||||
expect(reducers(undefined, {} as AnyAction)).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"checkingForUpdate": false,
|
||||
"hasUnresolvedInstallPrompt": false,
|
||||
"isServiceWorkerRegistered": false,
|
||||
|
||||
@@ -24,7 +24,7 @@ type State = ReturnType<typeof reducers>;
|
||||
|
||||
test('initial state', () => {
|
||||
expect(reducers(undefined, {} as AnyAction)).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"connection": "ble.connection.state.disconnected",
|
||||
"deviceBatteryCharging": false,
|
||||
"deviceFirmwareVersion": "",
|
||||
|
||||
@@ -291,7 +291,7 @@ describe('handleExplorerCreateNewFile', () => {
|
||||
saga.put(newFileWizardDidAccept('test', pythonFileExtension, Hub.Technic));
|
||||
|
||||
await expect(saga.take()).resolves.toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"contents": "from pybricks.hubs import TechnicHub
|
||||
from pybricks.pupdevices import Motor
|
||||
from pybricks.parameters import Button, Color, Direction, Port, Stop
|
||||
|
||||
@@ -9,7 +9,7 @@ type State = ReturnType<typeof reducers>;
|
||||
|
||||
test('initial state', () => {
|
||||
expect(reducers(undefined, {} as AnyAction)).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"isInitialized": false,
|
||||
}
|
||||
`);
|
||||
|
||||
@@ -15,13 +15,13 @@ type State = ReturnType<typeof reducers>;
|
||||
|
||||
test('initial state', () => {
|
||||
expect(reducers(undefined, {} as AnyAction)).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"flashing": false,
|
||||
"installPybricksDialog": Object {
|
||||
"installPybricksDialog": {
|
||||
"isOpen": false,
|
||||
},
|
||||
"progress": null,
|
||||
"restoreOfficialDialog": Object {
|
||||
"restoreOfficialDialog": {
|
||||
"isOpen": false,
|
||||
},
|
||||
}
|
||||
|
||||
+36
-36
@@ -110,12 +110,12 @@ describe('flashFirmware', () => {
|
||||
|
||||
action = await saga.take();
|
||||
expect(action).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"abiVersion": 5,
|
||||
"options": Array [
|
||||
"options": [
|
||||
"-mno-unicode",
|
||||
],
|
||||
"script": "print(\\"test\\")",
|
||||
"script": "print("test")",
|
||||
"type": "mpy.action.compile",
|
||||
}
|
||||
`);
|
||||
@@ -636,12 +636,12 @@ describe('flashFirmware', () => {
|
||||
|
||||
action = await saga.take();
|
||||
expect(action).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"abiVersion": 5,
|
||||
"options": Array [
|
||||
"options": [
|
||||
"-mno-unicode",
|
||||
],
|
||||
"script": "print(\\"test\\")",
|
||||
"script": "print("test")",
|
||||
"type": "mpy.action.compile",
|
||||
}
|
||||
`);
|
||||
@@ -784,12 +784,12 @@ describe('flashFirmware', () => {
|
||||
|
||||
action = await saga.take();
|
||||
expect(action).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"abiVersion": 5,
|
||||
"options": Array [
|
||||
"options": [
|
||||
"-mno-unicode",
|
||||
],
|
||||
"script": "print(\\"test\\")",
|
||||
"script": "print("test")",
|
||||
"type": "mpy.action.compile",
|
||||
}
|
||||
`);
|
||||
@@ -883,12 +883,12 @@ describe('flashFirmware', () => {
|
||||
|
||||
action = await saga.take();
|
||||
expect(action).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"abiVersion": 5,
|
||||
"options": Array [
|
||||
"options": [
|
||||
"-mno-unicode",
|
||||
],
|
||||
"script": "print(\\"test\\")",
|
||||
"script": "print("test")",
|
||||
"type": "mpy.action.compile",
|
||||
}
|
||||
`);
|
||||
@@ -991,12 +991,12 @@ describe('flashFirmware', () => {
|
||||
|
||||
action = await saga.take();
|
||||
expect(action).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"abiVersion": 5,
|
||||
"options": Array [
|
||||
"options": [
|
||||
"-mno-unicode",
|
||||
],
|
||||
"script": "print(\\"test\\")",
|
||||
"script": "print("test")",
|
||||
"type": "mpy.action.compile",
|
||||
}
|
||||
`);
|
||||
@@ -1139,12 +1139,12 @@ describe('flashFirmware', () => {
|
||||
|
||||
action = await saga.take();
|
||||
expect(action).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"abiVersion": 5,
|
||||
"options": Array [
|
||||
"options": [
|
||||
"-mno-unicode",
|
||||
],
|
||||
"script": "print(\\"test\\")",
|
||||
"script": "print("test")",
|
||||
"type": "mpy.action.compile",
|
||||
}
|
||||
`);
|
||||
@@ -1273,12 +1273,12 @@ describe('flashFirmware', () => {
|
||||
|
||||
let action = await saga.take();
|
||||
expect(action).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"abiVersion": 5,
|
||||
"options": Array [
|
||||
"options": [
|
||||
"-mno-unicode",
|
||||
],
|
||||
"script": "print(\\"test\\")",
|
||||
"script": "print("test")",
|
||||
"type": "mpy.action.compile",
|
||||
}
|
||||
`);
|
||||
@@ -1521,12 +1521,12 @@ describe('flashFirmware', () => {
|
||||
|
||||
let action = await saga.take();
|
||||
expect(action).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"abiVersion": 5,
|
||||
"options": Array [
|
||||
"options": [
|
||||
"-mno-unicode",
|
||||
],
|
||||
"script": "print(\\"test\\")",
|
||||
"script": "print("test")",
|
||||
"type": "mpy.action.compile",
|
||||
}
|
||||
`);
|
||||
@@ -1582,12 +1582,12 @@ describe('flashFirmware', () => {
|
||||
|
||||
let action = await saga.take();
|
||||
expect(action).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"abiVersion": 5,
|
||||
"options": Array [
|
||||
"options": [
|
||||
"-mno-unicode",
|
||||
],
|
||||
"script": "print(\\"test\\")",
|
||||
"script": "print("test")",
|
||||
"type": "mpy.action.compile",
|
||||
}
|
||||
`);
|
||||
@@ -1644,12 +1644,12 @@ describe('flashFirmware', () => {
|
||||
|
||||
let action = await saga.take();
|
||||
expect(action).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"abiVersion": 5,
|
||||
"options": Array [
|
||||
"options": [
|
||||
"-mno-unicode",
|
||||
],
|
||||
"script": "print(\\"test\\")",
|
||||
"script": "print("test")",
|
||||
"type": "mpy.action.compile",
|
||||
}
|
||||
`);
|
||||
@@ -1709,12 +1709,12 @@ describe('flashFirmware', () => {
|
||||
|
||||
let action = await saga.take();
|
||||
expect(action).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"abiVersion": 5,
|
||||
"options": Array [
|
||||
"options": [
|
||||
"-mno-unicode",
|
||||
],
|
||||
"script": "print(\\"test\\")",
|
||||
"script": "print("test")",
|
||||
"type": "mpy.action.compile",
|
||||
}
|
||||
`);
|
||||
@@ -1811,12 +1811,12 @@ describe('flashFirmware', () => {
|
||||
|
||||
action = await saga.take();
|
||||
expect(action).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"abiVersion": 5,
|
||||
"options": Array [
|
||||
"options": [
|
||||
"-mno-unicode",
|
||||
],
|
||||
"script": "print(\\"test\\")",
|
||||
"script": "print("test")",
|
||||
"type": "mpy.action.compile",
|
||||
}
|
||||
`);
|
||||
|
||||
@@ -17,7 +17,7 @@ type State = ReturnType<typeof reducers>;
|
||||
|
||||
test('initial state', () => {
|
||||
expect(reducers(undefined, {} as AnyAction)).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"downloadProgress": null,
|
||||
"mpyAbiVersion": 6,
|
||||
"runtime": "hub.runtime.disconnected",
|
||||
|
||||
@@ -19,7 +19,7 @@ type State = ReturnType<typeof reducers>;
|
||||
|
||||
test('initial state', () => {
|
||||
expect(reducers(undefined, {} as AnyAction)).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
{
|
||||
"connection": "bootloader.connection.disconnected",
|
||||
}
|
||||
`);
|
||||
|
||||
@@ -28,9 +28,9 @@ test('compiler error works', async () => {
|
||||
expect(didFailToCompile.matches(action)).toBeTruthy();
|
||||
const { err } = action as ReturnType<typeof didFailToCompile>;
|
||||
expect(err).toMatchInlineSnapshot(`
|
||||
Array [
|
||||
[
|
||||
"Traceback (most recent call last):",
|
||||
" File \\"main.py\\", line 1",
|
||||
" File "main.py", line 1",
|
||||
"SyntaxError: invalid syntax",
|
||||
]
|
||||
`);
|
||||
|
||||
Reference in New Issue
Block a user