├── .eslintrc.js ├── .gitignore ├── .travis.yml ├── 01-fundamentals-of-testing-in-javascript ├── 01-throw-an-error.js ├── 02-abstract-assertions.js ├── 03-encapsulate-and-isolate-tests.js ├── 04-support-async-tests.js ├── 05-provide-testing-helpers-as-globals.js ├── 06-verify-custom-js-tests-with-jest.test.js ├── README.md ├── math.js └── setup-globals.js ├── 02-static-analysis-testing-javascript-applications ├── .eslintrc ├── .flowconfig ├── README.md ├── package-lock.json ├── package.json └── src │ ├── example.js │ └── flow-example.js ├── 03-javascript-mocking-fundamentals ├── 01-override-object-props-to-mock-with-monkey-patching.no-framework.js ├── 01-override-object-props-to-mock-with-monkey-patching.test.js ├── 02-ensure-functions-are-called-correctly-with-javascript-mocks.no-framework.js ├── 02-ensure-functions-are-called-correctly-with-javascript-mocks.test.js ├── 03-restore-original-implementation-of-a-mocked-function.no-framework.js ├── 03-restore-original-implementation-of-a-mocked-function.test.js ├── 04-mock-a-js-module-in-a-test.no-framework.js ├── 04-mock-a-js-module-in-a-test.test.js ├── 05-make-a-shared-mock-module.no-framework.js ├── 05-make-a-shared-mock-module.test.js ├── README.md ├── package-lock.json ├── package.json └── src │ ├── __mocks__ │ └── utils.js │ ├── __no-framework-mocks__ │ └── utils.js │ ├── thumb-war.js │ └── utils.js ├── 04-configure-jest-for-javascript-applications ├── .babelrc.js ├── .gitignore ├── 01.test.js ├── 02.test.js ├── 03.test.js ├── 04.test.js ├── 05.test.js ├── 06.test.js ├── 07.test.js ├── 08.test.js ├── 09.test.js ├── 10.test.js ├── 20.test.server.js ├── README.md ├── __snapshots__ │ ├── 06.test.js.snap │ └── 07.test.js.snap ├── jest.config.js ├── lint-staged.config.js ├── package-lock.json ├── package.json ├── src │ ├── app.js │ ├── auto-scaling-text.js │ ├── auto-scaling-text.module.css │ ├── calculator-display.js │ ├── calculator.js │ ├── calculator.module.css │ ├── super-heros.js │ ├── themes.js │ └── utils.js └── test │ ├── jest.client.js │ ├── jest.common.js │ ├── jest.lint.js │ ├── jest.server.js │ ├── setup-tests.js │ └── style-mock.js ├── 05-install-configure-and-script-cypress-for-javaScript-web-applications ├── .babelrc.js ├── .eslintignore ├── .eslintrc.js ├── .gitignore ├── .npmrc ├── .prettierignore ├── .prettierrc ├── .travis.yml ├── README.md ├── cypress.json ├── cypress │ ├── e2e │ │ ├── calculator.js │ │ ├── login.js │ │ └── register.js │ ├── fixtures │ │ └── example.json │ ├── plugins │ │ └── index.js │ └── support │ │ ├── commands.js │ │ ├── generate.js │ │ └── index.js ├── jest.config.js ├── lint-staged.config.js ├── other │ └── utils.coverage.js ├── package-lock.json ├── package.json ├── public │ └── index.html ├── server │ ├── .npmrc │ ├── README.md │ ├── index.js │ ├── jest.config.js │ ├── package-lock.json │ ├── package.json │ └── src │ │ ├── __tests__ │ │ └── index.js │ │ └── index.js ├── src │ ├── __server_tests__ │ │ └── index.js │ ├── __tests__ │ │ └── calculator.js │ ├── app.js │ ├── calculator.js │ ├── calculator.module.css │ ├── fonts │ │ ├── KFOkCnqEu92Fr1MmgVxEIzIXKMnyrYk.woff2 │ │ ├── KFOkCnqEu92Fr1MmgVxFIzIXKMnyrYk.woff2 │ │ ├── KFOkCnqEu92Fr1MmgVxGIzIXKMnyrYk.woff2 │ │ ├── KFOkCnqEu92Fr1MmgVxHIzIXKMnyrYk.woff2 │ │ ├── KFOkCnqEu92Fr1MmgVxIIzIXKMny.woff2 │ │ ├── KFOkCnqEu92Fr1MmgVxLIzIXKMnyrYk.woff2 │ │ └── KFOkCnqEu92Fr1MmgVxMIzIXKMnyrYk.woff2 │ ├── global.css │ ├── index.js │ ├── load-user.js │ ├── login-form.js │ ├── react-devtools.js │ ├── shared │ │ ├── __tests__ │ │ │ ├── __snapshots__ │ │ │ │ └── calculator-display.js.snap │ │ │ ├── auto-scaling-text.js │ │ │ ├── calculator-display.js │ │ │ └── utils.js │ │ ├── auto-scaling-text.js │ │ ├── auto-scaling-text.module.css │ │ ├── calculator-display.js │ │ └── utils.js │ └── themes.js ├── test │ ├── calculator-test-utils.js │ ├── jest-common.js │ ├── jest.client.js │ ├── jest.lint.js │ ├── jest.server.js │ ├── setup-tests.js │ └── style-mock.js └── webpack.config.js ├── 06-test-react-components-with-jest-and-react-testing-library ├── .babelrc.js ├── README.md ├── __tests__ │ ├── countdown.test.js │ ├── error-boundary.test.js │ ├── favorite-number.test.js │ ├── form.test.js │ ├── greeting-loader-mock-01.js │ ├── greeting-loader-mock-02.js │ ├── hidden-message.test.js │ ├── main-01.test.js │ ├── main-02.test.js │ ├── modal.test.js │ ├── post-editor-01-markup.test.js │ ├── post-editor-02-markup.test.js │ ├── post-editor-03-markup.test.js │ ├── post-editor-04-markup.test.js │ ├── post-editor-05-markup.test.js │ ├── post-editor-06-markup.test.js │ ├── post-editor-07-markup.test.js │ ├── post-editor-08-markup.test.js │ ├── redux-app-01.test.js │ ├── redux-app-02.test.js │ ├── redux-app-03.test.js │ └── toggle.test.js ├── jest.config.js ├── package-lock.json ├── package.json └── src │ ├── api.js │ ├── countdown.js │ ├── error-boundary.js │ ├── favorite-number.js │ ├── form.js │ ├── greeting-loader-01-mocking.js │ ├── greeting-loader-02-mocking.js │ ├── hidden-message.js │ ├── main-01.js │ ├── main-02.js │ ├── modal.js │ ├── post-editor-01-markup.js │ ├── post-editor-02-markup.js │ ├── post-editor-03-markup.js │ ├── post-editor-04-markup.js │ ├── post-editor-05-markup.js │ ├── post-editor-06-markup.js │ ├── post-editor-07-markup.js │ ├── post-editor-08-markup.js │ ├── redux-app.js │ └── toggle.js ├── 07-use-dom-testing-library-to-test-any-js-framework ├── .babelrc.js ├── README.md ├── __tests__ │ ├── from-html.test.js │ ├── helpers │ │ └── fire-event-async.js │ ├── hyperapp.test.js │ ├── jquery.test.js │ ├── mithril.test.js │ ├── preact.test.js │ ├── react.test.js │ ├── svelte.test.js │ └── vue.test.js ├── jest.config.js ├── package-lock.json ├── package.json └── src │ ├── from-html.js │ ├── hyperapp.js │ ├── jquery.js │ ├── mithril.js │ ├── preact.js │ ├── react.js │ ├── svelte.js │ └── vue.js ├── README.md ├── jest.config.js ├── lint-staged.config.js └── package.json /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/.travis.yml -------------------------------------------------------------------------------- /01-fundamentals-of-testing-in-javascript/01-throw-an-error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/01-fundamentals-of-testing-in-javascript/01-throw-an-error.js -------------------------------------------------------------------------------- /01-fundamentals-of-testing-in-javascript/02-abstract-assertions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/01-fundamentals-of-testing-in-javascript/02-abstract-assertions.js -------------------------------------------------------------------------------- /01-fundamentals-of-testing-in-javascript/03-encapsulate-and-isolate-tests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/01-fundamentals-of-testing-in-javascript/03-encapsulate-and-isolate-tests.js -------------------------------------------------------------------------------- /01-fundamentals-of-testing-in-javascript/04-support-async-tests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/01-fundamentals-of-testing-in-javascript/04-support-async-tests.js -------------------------------------------------------------------------------- /01-fundamentals-of-testing-in-javascript/05-provide-testing-helpers-as-globals.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/01-fundamentals-of-testing-in-javascript/05-provide-testing-helpers-as-globals.js -------------------------------------------------------------------------------- /01-fundamentals-of-testing-in-javascript/06-verify-custom-js-tests-with-jest.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/01-fundamentals-of-testing-in-javascript/06-verify-custom-js-tests-with-jest.test.js -------------------------------------------------------------------------------- /01-fundamentals-of-testing-in-javascript/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/01-fundamentals-of-testing-in-javascript/README.md -------------------------------------------------------------------------------- /01-fundamentals-of-testing-in-javascript/math.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/01-fundamentals-of-testing-in-javascript/math.js -------------------------------------------------------------------------------- /01-fundamentals-of-testing-in-javascript/setup-globals.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/01-fundamentals-of-testing-in-javascript/setup-globals.js -------------------------------------------------------------------------------- /02-static-analysis-testing-javascript-applications/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/02-static-analysis-testing-javascript-applications/.eslintrc -------------------------------------------------------------------------------- /02-static-analysis-testing-javascript-applications/.flowconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/02-static-analysis-testing-javascript-applications/.flowconfig -------------------------------------------------------------------------------- /02-static-analysis-testing-javascript-applications/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/02-static-analysis-testing-javascript-applications/README.md -------------------------------------------------------------------------------- /02-static-analysis-testing-javascript-applications/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/02-static-analysis-testing-javascript-applications/package-lock.json -------------------------------------------------------------------------------- /02-static-analysis-testing-javascript-applications/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/02-static-analysis-testing-javascript-applications/package.json -------------------------------------------------------------------------------- /02-static-analysis-testing-javascript-applications/src/example.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/02-static-analysis-testing-javascript-applications/src/example.js -------------------------------------------------------------------------------- /02-static-analysis-testing-javascript-applications/src/flow-example.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/02-static-analysis-testing-javascript-applications/src/flow-example.js -------------------------------------------------------------------------------- /03-javascript-mocking-fundamentals/01-override-object-props-to-mock-with-monkey-patching.no-framework.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/03-javascript-mocking-fundamentals/01-override-object-props-to-mock-with-monkey-patching.no-framework.js -------------------------------------------------------------------------------- /03-javascript-mocking-fundamentals/01-override-object-props-to-mock-with-monkey-patching.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/03-javascript-mocking-fundamentals/01-override-object-props-to-mock-with-monkey-patching.test.js -------------------------------------------------------------------------------- /03-javascript-mocking-fundamentals/02-ensure-functions-are-called-correctly-with-javascript-mocks.no-framework.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/03-javascript-mocking-fundamentals/02-ensure-functions-are-called-correctly-with-javascript-mocks.no-framework.js -------------------------------------------------------------------------------- /03-javascript-mocking-fundamentals/02-ensure-functions-are-called-correctly-with-javascript-mocks.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/03-javascript-mocking-fundamentals/02-ensure-functions-are-called-correctly-with-javascript-mocks.test.js -------------------------------------------------------------------------------- /03-javascript-mocking-fundamentals/03-restore-original-implementation-of-a-mocked-function.no-framework.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/03-javascript-mocking-fundamentals/03-restore-original-implementation-of-a-mocked-function.no-framework.js -------------------------------------------------------------------------------- /03-javascript-mocking-fundamentals/03-restore-original-implementation-of-a-mocked-function.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/03-javascript-mocking-fundamentals/03-restore-original-implementation-of-a-mocked-function.test.js -------------------------------------------------------------------------------- /03-javascript-mocking-fundamentals/04-mock-a-js-module-in-a-test.no-framework.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/03-javascript-mocking-fundamentals/04-mock-a-js-module-in-a-test.no-framework.js -------------------------------------------------------------------------------- /03-javascript-mocking-fundamentals/04-mock-a-js-module-in-a-test.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/03-javascript-mocking-fundamentals/04-mock-a-js-module-in-a-test.test.js -------------------------------------------------------------------------------- /03-javascript-mocking-fundamentals/05-make-a-shared-mock-module.no-framework.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/03-javascript-mocking-fundamentals/05-make-a-shared-mock-module.no-framework.js -------------------------------------------------------------------------------- /03-javascript-mocking-fundamentals/05-make-a-shared-mock-module.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/03-javascript-mocking-fundamentals/05-make-a-shared-mock-module.test.js -------------------------------------------------------------------------------- /03-javascript-mocking-fundamentals/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/03-javascript-mocking-fundamentals/README.md -------------------------------------------------------------------------------- /03-javascript-mocking-fundamentals/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/03-javascript-mocking-fundamentals/package-lock.json -------------------------------------------------------------------------------- /03-javascript-mocking-fundamentals/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/03-javascript-mocking-fundamentals/package.json -------------------------------------------------------------------------------- /03-javascript-mocking-fundamentals/src/__mocks__/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/03-javascript-mocking-fundamentals/src/__mocks__/utils.js -------------------------------------------------------------------------------- /03-javascript-mocking-fundamentals/src/__no-framework-mocks__/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/03-javascript-mocking-fundamentals/src/__no-framework-mocks__/utils.js -------------------------------------------------------------------------------- /03-javascript-mocking-fundamentals/src/thumb-war.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/03-javascript-mocking-fundamentals/src/thumb-war.js -------------------------------------------------------------------------------- /03-javascript-mocking-fundamentals/src/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/03-javascript-mocking-fundamentals/src/utils.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/.babelrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/.babelrc.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/01.test.js: -------------------------------------------------------------------------------- 1 | test('it works', () => {}); 2 | -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/02.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/02.test.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/03.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/03.test.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/04.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/04.test.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/05.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/05.test.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/06.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/06.test.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/07.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/07.test.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/08.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/08.test.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/09.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/09.test.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/10.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/10.test.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/20.test.server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/20.test.server.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/README.md -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/__snapshots__/06.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/__snapshots__/06.test.js.snap -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/__snapshots__/07.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/__snapshots__/07.test.js.snap -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/jest.config.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/lint-staged.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/lint-staged.config.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/package-lock.json -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/package.json -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/src/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/src/app.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/src/auto-scaling-text.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/src/auto-scaling-text.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/src/auto-scaling-text.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/src/auto-scaling-text.module.css -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/src/calculator-display.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/src/calculator-display.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/src/calculator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/src/calculator.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/src/calculator.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/src/calculator.module.css -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/src/super-heros.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/src/super-heros.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/src/themes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/src/themes.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/src/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/src/utils.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/test/jest.client.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/test/jest.client.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/test/jest.common.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/test/jest.common.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/test/jest.lint.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/test/jest.lint.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/test/jest.server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/test/jest.server.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/test/setup-tests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/04-configure-jest-for-javascript-applications/test/setup-tests.js -------------------------------------------------------------------------------- /04-configure-jest-for-javascript-applications/test/style-mock.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/.babelrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/.babelrc.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/.eslintignore: -------------------------------------------------------------------------------- 1 | coverage 2 | node_modules 3 | public 4 | dist 5 | other 6 | -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/.eslintrc.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/.gitignore -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/.npmrc -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/.prettierignore: -------------------------------------------------------------------------------- 1 | coverage 2 | node_modules 3 | dist 4 | other 5 | -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/.prettierrc -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/.travis.yml -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/README.md -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/cypress.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/cypress.json -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/cypress/e2e/calculator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/cypress/e2e/calculator.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/cypress/e2e/login.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/cypress/e2e/login.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/cypress/e2e/register.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/cypress/e2e/register.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/cypress/fixtures/example.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/cypress/plugins/index.js: -------------------------------------------------------------------------------- 1 | module.exports = () => {} 2 | -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/cypress/support/commands.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/cypress/support/commands.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/cypress/support/generate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/cypress/support/generate.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/cypress/support/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/cypress/support/index.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/jest.config.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/lint-staged.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/lint-staged.config.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/other/utils.coverage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/other/utils.coverage.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/package-lock.json -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/package.json -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/public/index.html -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/server/.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/server/.npmrc -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/server/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/server/README.md -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/server/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/server/index.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/server/jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/server/jest.config.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/server/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/server/package-lock.json -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/server/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/server/package.json -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/server/src/__tests__/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/server/src/__tests__/index.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/server/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/server/src/index.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/__server_tests__/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/__server_tests__/index.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/__tests__/calculator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/__tests__/calculator.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/app.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/calculator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/calculator.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/calculator.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/calculator.module.css -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/fonts/KFOkCnqEu92Fr1MmgVxEIzIXKMnyrYk.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/fonts/KFOkCnqEu92Fr1MmgVxEIzIXKMnyrYk.woff2 -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/fonts/KFOkCnqEu92Fr1MmgVxFIzIXKMnyrYk.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/fonts/KFOkCnqEu92Fr1MmgVxFIzIXKMnyrYk.woff2 -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/fonts/KFOkCnqEu92Fr1MmgVxGIzIXKMnyrYk.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/fonts/KFOkCnqEu92Fr1MmgVxGIzIXKMnyrYk.woff2 -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/fonts/KFOkCnqEu92Fr1MmgVxHIzIXKMnyrYk.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/fonts/KFOkCnqEu92Fr1MmgVxHIzIXKMnyrYk.woff2 -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/fonts/KFOkCnqEu92Fr1MmgVxIIzIXKMny.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/fonts/KFOkCnqEu92Fr1MmgVxIIzIXKMny.woff2 -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/fonts/KFOkCnqEu92Fr1MmgVxLIzIXKMnyrYk.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/fonts/KFOkCnqEu92Fr1MmgVxLIzIXKMnyrYk.woff2 -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/fonts/KFOkCnqEu92Fr1MmgVxMIzIXKMnyrYk.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/fonts/KFOkCnqEu92Fr1MmgVxMIzIXKMnyrYk.woff2 -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/global.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/global.css -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/index.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/load-user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/load-user.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/login-form.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/login-form.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/react-devtools.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/react-devtools.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/shared/__tests__/__snapshots__/calculator-display.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/shared/__tests__/__snapshots__/calculator-display.js.snap -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/shared/__tests__/auto-scaling-text.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/shared/__tests__/auto-scaling-text.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/shared/__tests__/calculator-display.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/shared/__tests__/calculator-display.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/shared/__tests__/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/shared/__tests__/utils.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/shared/auto-scaling-text.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/shared/auto-scaling-text.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/shared/auto-scaling-text.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/shared/auto-scaling-text.module.css -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/shared/calculator-display.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/shared/calculator-display.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/shared/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/shared/utils.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/src/themes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/src/themes.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/test/calculator-test-utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/test/calculator-test-utils.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/test/jest-common.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/test/jest-common.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/test/jest.client.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/test/jest.client.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/test/jest.lint.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/test/jest.lint.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/test/jest.server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/test/jest.server.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/test/setup-tests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/test/setup-tests.js -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/test/style-mock.js: -------------------------------------------------------------------------------- 1 | module.exports = {} 2 | -------------------------------------------------------------------------------- /05-install-configure-and-script-cypress-for-javaScript-web-applications/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/05-install-configure-and-script-cypress-for-javaScript-web-applications/webpack.config.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/.babelrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/.babelrc.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/README.md -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/countdown.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/countdown.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/error-boundary.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/error-boundary.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/favorite-number.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/favorite-number.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/form.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/form.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/greeting-loader-mock-01.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/greeting-loader-mock-01.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/greeting-loader-mock-02.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/greeting-loader-mock-02.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/hidden-message.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/hidden-message.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/main-01.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/main-01.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/main-02.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/main-02.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/modal.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/modal.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/post-editor-01-markup.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/post-editor-01-markup.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/post-editor-02-markup.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/post-editor-02-markup.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/post-editor-03-markup.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/post-editor-03-markup.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/post-editor-04-markup.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/post-editor-04-markup.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/post-editor-05-markup.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/post-editor-05-markup.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/post-editor-06-markup.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/post-editor-06-markup.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/post-editor-07-markup.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/post-editor-07-markup.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/post-editor-08-markup.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/post-editor-08-markup.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/redux-app-01.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/redux-app-01.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/redux-app-02.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/redux-app-02.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/redux-app-03.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/redux-app-03.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/__tests__/toggle.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/__tests__/toggle.test.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/jest.config.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/package-lock.json -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/package.json -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/api.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/countdown.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/countdown.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/error-boundary.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/error-boundary.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/favorite-number.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/favorite-number.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/form.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/form.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/greeting-loader-01-mocking.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/greeting-loader-01-mocking.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/greeting-loader-02-mocking.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/greeting-loader-02-mocking.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/hidden-message.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/hidden-message.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/main-01.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/main-01.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/main-02.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/main-02.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/modal.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/modal.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/post-editor-01-markup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/post-editor-01-markup.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/post-editor-02-markup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/post-editor-02-markup.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/post-editor-03-markup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/post-editor-03-markup.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/post-editor-04-markup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/post-editor-04-markup.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/post-editor-05-markup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/post-editor-05-markup.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/post-editor-06-markup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/post-editor-06-markup.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/post-editor-07-markup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/post-editor-07-markup.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/post-editor-08-markup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/post-editor-08-markup.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/redux-app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/redux-app.js -------------------------------------------------------------------------------- /06-test-react-components-with-jest-and-react-testing-library/src/toggle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/06-test-react-components-with-jest-and-react-testing-library/src/toggle.js -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/.babelrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/.babelrc.js -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/README.md -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/__tests__/from-html.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/__tests__/from-html.test.js -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/__tests__/helpers/fire-event-async.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/__tests__/helpers/fire-event-async.js -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/__tests__/hyperapp.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/__tests__/hyperapp.test.js -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/__tests__/jquery.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/__tests__/jquery.test.js -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/__tests__/mithril.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/__tests__/mithril.test.js -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/__tests__/preact.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/__tests__/preact.test.js -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/__tests__/react.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/__tests__/react.test.js -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/__tests__/svelte.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/__tests__/svelte.test.js -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/__tests__/vue.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/__tests__/vue.test.js -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/package-lock.json -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/package.json -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/src/from-html.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/src/from-html.js -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/src/hyperapp.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/src/hyperapp.js -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/src/jquery.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/src/jquery.js -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/src/mithril.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/src/mithril.js -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/src/preact.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/src/preact.js -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/src/react.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/src/react.js -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/src/svelte.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/src/svelte.js -------------------------------------------------------------------------------- /07-use-dom-testing-library-to-test-any-js-framework/src/vue.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/07-use-dom-testing-library-to-test-any-js-framework/src/vue.js -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/README.md -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/jest.config.js -------------------------------------------------------------------------------- /lint-staged.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/lint-staged.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larrybotha/testing-javascript/HEAD/package.json --------------------------------------------------------------------------------