⬆️(react) upgrade package to use official tokens

... and install user-event library. Setting the stage for
the implementation of real tokens in the Button component.
This commit is contained in:
Nathan Vasse
2023-01-13 15:34:10 +01:00
committed by NathanVss
parent e5c1693454
commit 8f5e546f04
4 changed files with 14 additions and 24 deletions

View File

@@ -52,6 +52,7 @@
"@storybook/testing-library": "0.0.13",
"@testing-library/dom": "8.19.1",
"@testing-library/react": "13.4.0",
"@testing-library/user-event": "14.4.3",
"@types/react": "18.0.26",
"@types/react-dom": "18.0.10",
"@vitejs/plugin-react": "3.0.0",

View File

@@ -1,3 +1,4 @@
@import "@fontsource/roboto/100";
@import "@fontsource/roboto/300";
@import "@fontsource/roboto/400";
@import "@fontsource/roboto/700";

View File

@@ -2,7 +2,8 @@
"extends": "@openfun/typescript-configs/react.json",
"compilerOptions": {
"noEmit": true,
"baseUrl": "./src"
"baseUrl": "./src",
"types": ["vitest/globals"]
},
"include": ["src", "cunningham.ts"],
"exclude": ["node_modules","dist", "**/tokens.ts"],