Skip to content

Commit

Permalink
Merge pull request #16 from nickovchinnikov/nick/testingLibrary
Browse files Browse the repository at this point in the history
Add testing library example
  • Loading branch information
nickovchinnikov committed Jul 13, 2021
2 parents cdec20e + e744ad1 commit 3236fbb
Show file tree
Hide file tree
Showing 6 changed files with 436 additions and 21 deletions.
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

0 comments on commit 3236fbb

Please sign in to comment.