Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add testing library example #16

Merged
merged 1 commit into from
Jul 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 26 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,23 @@

[React intro examples pull request](https://github.com/nickovchinnikov/minesweeper/pull/10/files)

## Section 4: Storybook and Components Library
## Section 4: Jest, TDD and basic game logic

### Jest testing framework (TDD vs TLD)

[Pull request](https://github.com/nickovchinnikov/minesweeper/pull/6)

[Jest](https://jestjs.io/docs/getting-started)

[Jest and TDD](https://medium.com/@suvodeep4119/javascript-tdd-using-jest-9b535c6be7be)

### Basic game functionality

[Pull request](https://github.com/nickovchinnikov/minesweeper/pull/7)

[Pull request2](https://github.com/nickovchinnikov/minesweeper/pull/8)

## Section 5: Storybook and Components Library

### Library Emotion for css-in-js

Expand All @@ -76,31 +92,27 @@
[Strybook docs](https://storybook.js.org/)

### Create components with Storybook

### Components composition

[Pull request](https://github.com/nickovchinnikov/minesweeper/pull/12)

### Chromatic for visual testing

[Pull request](https://github.com/nickovchinnikov/minesweeper/pull/13)

### List and Keys

[Pull request](https://github.com/nickovchinnikov/minesweeper/pull/14)

### Dynamic components with useState Hook
[Pull request](https://github.com/nickovchinnikov/minesweeper/pull/15)

## Section 5: Jest, TDD and basic game logic

### Jest testing framework (TDD vs TLD)

[Pull request](https://github.com/nickovchinnikov/minesweeper/pull/6)

[Jest](https://jestjs.io/docs/getting-started)

[Jest and TDD](https://medium.com/@suvodeep4119/javascript-tdd-using-jest-9b535c6be7be)
[Pull request](https://github.com/nickovchinnikov/minesweeper/pull/15)

### Basic game functionality
### React-testing-library

[Pull request](https://github.com/nickovchinnikov/minesweeper/pull/7)
[Jest-dom](https://github.com/testing-library/jest-dom)

[Pull request2](https://github.com/nickovchinnikov/minesweeper/pull/8)
[Testing-library](https://testing-library.com/docs/queries/about)

[Pull request](https://github.com/nickovchinnikov/minesweeper/pull/16)
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ module.exports = {
// setupFiles: [],

// A list of paths to modules that run some code to configure or set up the testing framework before each test
// setupFilesAfterEnv: [],
setupFilesAfterEnv: ['<rootDir>/settings/JestSetup.js'],

// The number of seconds after which a test is considered as slow and reported as such in the results.
// slowTestThreshold: 5,
Expand Down
Loading