Migrate to React 19 #6223
tests.yml
on: pull_request
Check for changes
3s
Matrix: build
Matrix: Check package config with are-the-types-wrong
Matrix: test-dist
Matrix: test-published-artifact
Matrix: test-types
Annotations
10 errors
src/tests/createReducer.test.ts > createReducer > builder callback for actionMap > will throw an error when returning undefined from a non-draftable state:
packages/toolkit/src/tests/createReducer.test.ts#L303
Error: Snapshot `createReducer > builder callback for actionMap > will throw an error when returning undefined from a non-draftable state 1` mismatched
- Expected
+ Received
- [Error: A case reducer on a non-draftable value must not return undefined]
+ [Error: Minified Redux Toolkit error #9; visit https://redux-toolkit.js.org/Errors?code=9 for the full message or use the non-minified dev environment for full errors. ]
❯ src/tests/createReducer.test.ts:303:46
|
src/tests/createReducer.test.ts > createReducer > builder callback for actionMap > will throw if the same type is used twice:
packages/toolkit/src/tests/createReducer.test.ts#L351
Error: Snapshot `createReducer > builder callback for actionMap > will throw if the same type is used twice 1` mismatched
- Expected
+ Received
- [Error: `builder.addCase` cannot be called with two reducers for the same action type 'increment']
+ [Error: Minified Redux Toolkit error #29; visit https://redux-toolkit.js.org/Errors?code=29 for the full message or use the non-minified dev environment for full errors. ]
❯ src/tests/createReducer.test.ts:351:9
|
src/tests/createReducer.test.ts > createReducer > builder callback for actionMap > will throw if an empty type is used:
packages/toolkit/src/tests/createReducer.test.ts#L379
Error: Snapshot `createReducer > builder callback for actionMap > will throw if an empty type is used 1` mismatched
- Expected
+ Received
- [Error: `builder.addCase` cannot be called with an empty action type]
+ [Error: Minified Redux Toolkit error #28; visit https://redux-toolkit.js.org/Errors?code=28 for the full message or use the non-minified dev environment for full errors. ]
❯ src/tests/createReducer.test.ts:379:9
|
src/tests/createReducer.test.ts > createReducer > builder "addMatcher" method > calling addCase, addMatcher and addDefaultCase in a nonsensical order should result in an error in development mode:
packages/toolkit/src/tests/createReducer.test.ts#L504
Error: snapshot function didn't throw
❯ src/tests/createReducer.test.ts:504:9
|
Run local tests against build artifact (React ^18)
Process completed with exit code 1.
|
src/tests/createReducer.test.ts > createReducer > builder callback for actionMap > will throw an error when returning undefined from a non-draftable state:
packages/toolkit/src/tests/createReducer.test.ts#L303
Error: Snapshot `createReducer > builder callback for actionMap > will throw an error when returning undefined from a non-draftable state 1` mismatched
- Expected
+ Received
- [Error: A case reducer on a non-draftable value must not return undefined]
+ [Error: Minified Redux Toolkit error #9; visit https://redux-toolkit.js.org/Errors?code=9 for the full message or use the non-minified dev environment for full errors. ]
❯ src/tests/createReducer.test.ts:303:46
|
src/tests/createReducer.test.ts > createReducer > builder callback for actionMap > will throw if the same type is used twice:
packages/toolkit/src/tests/createReducer.test.ts#L351
Error: Snapshot `createReducer > builder callback for actionMap > will throw if the same type is used twice 1` mismatched
- Expected
+ Received
- [Error: `builder.addCase` cannot be called with two reducers for the same action type 'increment']
+ [Error: Minified Redux Toolkit error #29; visit https://redux-toolkit.js.org/Errors?code=29 for the full message or use the non-minified dev environment for full errors. ]
❯ src/tests/createReducer.test.ts:351:9
|
src/tests/createReducer.test.ts > createReducer > builder callback for actionMap > will throw if an empty type is used:
packages/toolkit/src/tests/createReducer.test.ts#L379
Error: Snapshot `createReducer > builder callback for actionMap > will throw if an empty type is used 1` mismatched
- Expected
+ Received
- [Error: `builder.addCase` cannot be called with an empty action type]
+ [Error: Minified Redux Toolkit error #28; visit https://redux-toolkit.js.org/Errors?code=28 for the full message or use the non-minified dev environment for full errors. ]
❯ src/tests/createReducer.test.ts:379:9
|
src/tests/createReducer.test.ts > createReducer > builder "addMatcher" method > calling addCase, addMatcher and addDefaultCase in a nonsensical order should result in an error in development mode:
packages/toolkit/src/tests/createReducer.test.ts#L504
Error: snapshot function didn't throw
❯ src/tests/createReducer.test.ts:504:9
|
Run local tests against build artifact (React rc)
Process completed with exit code 1.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
package
|
1.14 MB |
|