remove mkdocs specific syntax

This commit is contained in:
Marcello 2024-06-16 19:14:59 +02:00
parent 8d08c1964f
commit 8026e1465b
Signed by: m-lamonaca
SSH key fingerprint: SHA256:8db8uii6Gweq7TbKixFBioW2T8CbgtyFETyYL3cr3zk
77 changed files with 1128 additions and 1128 deletions

View file

@ -4,7 +4,7 @@
### Jest Configuration
```js linenums="1"
```js
// jest.config.js
module.exports = {
testEnvironment: 'jsdom',
@ -18,7 +18,7 @@ module.exports = {
[Expect docs](https://jestjs.io/docs/expect)
```js linenums="1"
```js
// .spec.js or .test.js
it("test description", () => {
// test body
@ -36,7 +36,7 @@ describe("test group name", () => {
In `Component.Snapshots.js`:
```js linenums="1"
```js
import React from "react";
import renderer from "react-test-renderer";
@ -60,7 +60,7 @@ it("test description", () => {
### Enzyme Configuration
```js linenums="1"
```js
// testSetup.js
import { configure } from "enzyme";
import Adapter from "enzyme-adapter-react-<version>";
@ -72,7 +72,7 @@ configure({ adapter: new Adapter() });
In `Component.test.js`:
```js linenums="1"
```js
import React from "react";
import { shallow, mount } from "enzyme";
// eventual wrapper components (react-router, react-redux's provider, ...) for mount render
@ -125,7 +125,7 @@ Encourages to write test based on what the user sees. So components are always *
In `Components.test.js`:
```js linenums="1"
```js
import React from "react";
import { cleanup, render } from "@testing-library/react";