Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
import {render} from '@testing-library/react';
import {MemoryRouter as Router} from 'react-router-dom';
import {Provider} from '../../utils/StoreContext';
import FeedAttributes from '../../pages/FeedAttributes';
import feedAttributes from '../../stores/feedAttributes';
import appState from '../../stores/appState';
describe('Test List all FeedAttributes page', () => {
beforeEach(async () => {
jest.resetModules();
context = {
appState,
feedAttributes
};
props = {
history: [],
location: {
pathname: '/feedAttributes'
}
};
});
it('Should render page in default state', async () => {
let {asFragment} = render(
<Provider {...context}>
<Router>
<FeedAttributes {...props} />
</Router>
</Provider>
);
expect(asFragment()).toMatchSnapshot();
});
});
> [email protected] test
> NODE_ENV=production jest client/tests/pages/FeedAttributes.test.js
console.error
act(...) is not supported in production builds of React, and might not behave as expected.
at act (node_modules/react-dom/cjs/react-dom-test-utils.production.min.js:28:396)
at render (node_modules/@testing-library/react/dist/pure.js:97:26)
at Object.<anonymous> (client/tests/pages/FeedAttributes.test.js:45:50)
console.error
Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=object&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at Ug (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/react-dom/cjs/react-dom.production.min.js:275:129)
at p (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/react-dom/cjs/react-dom.production.min.js:142:382)
at ca (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/react-dom/cjs/react-dom.production.min.js:145:142)
at /Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/react-dom/cjs/react-dom.production.min.js:149:236
at R (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/react-dom/cjs/react-dom.production.min.js:173:103)
at Rj (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/react-dom/cjs/react-dom.production.min.js:265:156)
at Qj (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/react-dom/cjs/react-dom.production.min.js:246:265)
at Kj (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/react-dom/cjs/react-dom.production.min.js:246:194)
at yj (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/react-dom/cjs/react-dom.production.min.js:239:172)
at Ig (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/react-dom/cjs/react-dom.production.min.js:230:137)
at bk (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/react-dom/cjs/react-dom.production.min.js:281:43)
at /Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/react-dom/cjs/react-dom.production.min.js:284:301
at Nj (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/react-dom/cjs/react-dom.production.min.js:240:120)
at ik (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/react-dom/cjs/react-dom.production.min.js:284:287)
at Object.<anonymous>.exports.render (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/react-dom/cjs/react-dom.production.min.js:290:293)
at /Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/@testing-library/react/dist/pure.js:101:25
at Mj (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/react-dom/cjs/react-dom.production.min.js:240:42)
at act (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js:29:63)
at render (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/@testing-library/react/dist/pure.js:97:26)
at Object.<anonymous> (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/client/tests/pages/FeedAttributes.test.js:45:50)
at Promise.then.completed (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/jest-circus/build/utils.js:391:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/jest-circus/build/utils.js:316:10)
at _callCircusTest (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/jest-circus/build/run.js:218:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/jest-circus/build/run.js:155:3)
at _runTestsForDescribeBlock (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/jest-circus/build/run.js:66:9)
at _runTestsForDescribeBlock (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/jest-circus/build/run.js:60:9)
at run (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/jest-circus/build/run.js:25:3)
at runAndTransformResultsToJestFormat (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:170:21)
at jestAdapter (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:82:19)
at runTestInternal (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/jest-runner/build/runTest.js:389:16)
at runTest (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/jest-runner/build/runTest.js:475:34)
at TestRunner.runTests (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/jest-runner/build/index.js:101:12)
at TestScheduler.scheduleTests (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/@jest/core/build/TestScheduler.js:333:13)
at runJest (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/@jest/core/build/runJest.js:404:19)
at _run10000 (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/@jest/core/build/cli/index.js:320:7)
at runCLI (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/@jest/core/build/cli/index.js:173:3)
at Object.run (/Users/ambicasonys/workspace/te/catalogsyndicationcentral/node_modules/jest-cli/build/cli/index.js:163:37)
at Ci (node_modules/react-dom/cjs/react-dom.production.min.js:209:195)
at Xi.c.callback (node_modules/react-dom/cjs/react-dom.production.min.js:226:166)
at Cg (node_modules/react-dom/cjs/react-dom.production.min.js:131:193)
at Ji (node_modules/react-dom/cjs/react-dom.production.min.js:212:491)
at Sj (node_modules/react-dom/cjs/react-dom.production.min.js:255:229)
at Object.<anonymous>.exports.unstable_runWithPriority (node_modules/scheduler/cjs/scheduler.production.min.js:19:467)
at cg (node_modules/react-dom/cjs/react-dom.production.min.js:122:325)
FAIL client/tests/pages/FeedAttributes.test.js
Test List all FeedAttributes page
✕ Should render page in default state (28 ms)
● Test List all FeedAttributes page › Should render page in default state
Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=object&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at Ug (node_modules/react-dom/cjs/react-dom.production.min.js:275:129)
at p (node_modules/react-dom/cjs/react-dom.production.min.js:142:382)
at ca (node_modules/react-dom/cjs/react-dom.production.min.js:145:142)
at node_modules/react-dom/cjs/react-dom.production.min.js:149:236
at R (node_modules/react-dom/cjs/react-dom.production.min.js:173:103)
at Rj (node_modules/react-dom/cjs/react-dom.production.min.js:265:156)
at Qj (node_modules/react-dom/cjs/react-dom.production.min.js:246:265)
at Kj (node_modules/react-dom/cjs/react-dom.production.min.js:246:194)
at yj (node_modules/react-dom/cjs/react-dom.production.min.js:239:172)
at Ig (node_modules/react-dom/cjs/react-dom.production.min.js:230:137)
at bk (node_modules/react-dom/cjs/react-dom.production.min.js:281:43)
at node_modules/react-dom/cjs/react-dom.production.min.js:284:301
at Nj (node_modules/react-dom/cjs/react-dom.production.min.js:240:120)
at ik (node_modules/react-dom/cjs/react-dom.production.min.js:284:287)
at Object.<anonymous>.exports.render (node_modules/react-dom/cjs/react-dom.production.min.js:290:293)
at node_modules/@testing-library/react/dist/pure.js:101:25
at Mj (node_modules/react-dom/cjs/react-dom.production.min.js:240:42)
at act (node_modules/react-dom/cjs/react-dom-test-utils.production.min.js:29:63)
at render (node_modules/@testing-library/react/dist/pure.js:97:26)
at Object.<anonymous> (client/tests/pages/FeedAttributes.test.js:45:50)
at TestScheduler.scheduleTests (node_modules/@jest/core/build/TestScheduler.js:333:13)
at runJest (node_modules/@jest/core/build/runJest.js:404:19)
at _run10000 (node_modules/@jest/core/build/cli/index.js:320:7)
at runCLI (node_modules/@jest/core/build/cli/index.js:173:3)
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team