Skip to content

Commit

Permalink
Merge pull request #6490 from owncloud/document-unit-test-spec-structure
Browse files Browse the repository at this point in the history
[docs] add unit test spec file structure information
  • Loading branch information
pascalwengerter authored Feb 28, 2022
2 parents d3f03e3 + 51bfde7 commit b47acff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/testing/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ $ yarn test:integration

You can also specify which tests to run by giving a path param, like so: `yarn test:unit packages/<app-name>/tests/unit/path/to/test.spec.js`.

#### Unit test file structure
Our unit tests spec files follow a simple structure:
- fixtures and mocks at the top
- helper functions at the bottom
- tests in between

### E2E Tests (Playwright)

Our end-to-end test suite is built upon [Playwright Framework](https://github.com/microsoft/playwright),
Expand Down

0 comments on commit b47acff

Please sign in to comment.