Browse Source

Importation automatique de @testing-library/jest-dom avant les tests

Lou 3 years ago
parent
commit
f9590b58e6
3 changed files with 3 additions and 2 deletions
  1. 1
    0
      package.json
  2. 0
    2
      src/__tests__/LoginForm.spec.js
  3. 2
    0
      src/setupTests.js

+ 1
- 0
package.json View File

@@ -1,4 +1,5 @@
1 1
 {
2
+  "name": "chronobriq-react",
2 3
   "version": "0.0.0",
3 4
   "scripts": {
4 5
     "dev": "vite",

+ 0
- 2
src/__tests__/LoginForm.spec.js View File

@@ -1,6 +1,4 @@
1
-import React from 'react';
2 1
 import { render, screen } from "../tools/test-utils";
3
-import '@testing-library/jest-dom';
4 2
 // import userEvent from "@testing-library/user-event";
5 3
 
6 4
 import LoginForm from '../components/forms/LoginForm';

+ 2
- 0
src/setupTests.js View File

@@ -0,0 +1,2 @@
1
+// import React from 'react';
2
+import "@testing-library/jest-dom";

Loading…
Cancel
Save