├── .circleci └── config.yml ├── .gitignore ├── .npmrc ├── .nvmrc ├── .prettierrc ├── BACKLOG.md ├── LICENSE ├── README.md ├── index.js ├── package.json ├── src ├── index.js ├── operations.js ├── react-component │ ├── Button.js │ ├── __mocks__ │ │ └── httpService.js │ └── httpService.js └── utils.js └── tests ├── __snapshots__ └── snapshots.test.js.snap ├── poke.into.prototype.test.js ├── poke.into.react.components.test.js ├── react-components-async.test.js ├── setupTests.js ├── snapshots.test.js ├── spies.basics.test.js ├── spies.checking-arguments.test.js ├── spies.custom-behavior.test.js ├── spies.spy-on-object-method.test.js ├── spies.times.test.js └── timers.test.js /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .idea/ 3 | 4 | npm-debug.log 5 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/.npmrc -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | lts/* -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/.prettierrc -------------------------------------------------------------------------------- /BACKLOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/BACKLOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/README.md -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | console.log('Please run `npm t`'); 2 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/package.json -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/src/index.js -------------------------------------------------------------------------------- /src/operations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/src/operations.js -------------------------------------------------------------------------------- /src/react-component/Button.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/src/react-component/Button.js -------------------------------------------------------------------------------- /src/react-component/__mocks__/httpService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/src/react-component/__mocks__/httpService.js -------------------------------------------------------------------------------- /src/react-component/httpService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/src/react-component/httpService.js -------------------------------------------------------------------------------- /src/utils.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | PI: Math.PI 3 | }; 4 | -------------------------------------------------------------------------------- /tests/__snapshots__/snapshots.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/tests/__snapshots__/snapshots.test.js.snap -------------------------------------------------------------------------------- /tests/poke.into.prototype.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/tests/poke.into.prototype.test.js -------------------------------------------------------------------------------- /tests/poke.into.react.components.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/tests/poke.into.react.components.test.js -------------------------------------------------------------------------------- /tests/react-components-async.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/tests/react-components-async.test.js -------------------------------------------------------------------------------- /tests/setupTests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/tests/setupTests.js -------------------------------------------------------------------------------- /tests/snapshots.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/tests/snapshots.test.js -------------------------------------------------------------------------------- /tests/spies.basics.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/tests/spies.basics.test.js -------------------------------------------------------------------------------- /tests/spies.checking-arguments.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/tests/spies.checking-arguments.test.js -------------------------------------------------------------------------------- /tests/spies.custom-behavior.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/tests/spies.custom-behavior.test.js -------------------------------------------------------------------------------- /tests/spies.spy-on-object-method.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/tests/spies.spy-on-object-method.test.js -------------------------------------------------------------------------------- /tests/spies.times.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/tests/spies.times.test.js -------------------------------------------------------------------------------- /tests/timers.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maurocarrero/sinon-jest-cheatsheet/HEAD/tests/timers.test.js --------------------------------------------------------------------------------