Skip to content

Commit

Permalink
4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetemrekilinc committed Jan 26, 2024
1 parent 5c39fb8 commit 79e0fad
Show file tree
Hide file tree
Showing 3 changed files with 2,641 additions and 53 deletions.
29 changes: 25 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
{
"name": "comfort-react-demo",
"version": "4.1.1",
"version": "4.2.0",
"type": "module",
"license": "MIT",
"scripts": {
"dev": "vite --port 3245",
"build": "vite build",
"preview": "vite preview"
"preview": "vite preview",
"test": "jest",
"test:coverage": "jest --coverage"
},
"dependencies": {
"@babel/preset-env": "^7.23.8",
"@babel/preset-react": "^7.23.3",
"@emotion/react": "11.11.1",
"@emotion/styled": "11.11.0",
"@mui/icons-material": "5.14.16",
"@mui/lab": "5.0.0-alpha.151",
"@mui/material": "5.14.16",
"@mui/utils": "5.14.16",
"@mui/x-date-pickers": "6.17.0",
"comfort-react": "4.1.1",
"@testing-library/jest-dom": "^6.2.1",
"@testing-library/react": "^14.1.2",
"comfort-react": "4.2.0",
"date-fns": "2.30.0",
"jsx-to-string": "1.4.0",
"miragejs": "0.1.48",
Expand Down Expand Up @@ -44,12 +50,27 @@
"eslint-plugin-prettier": "5.0.1",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "3.0.3",
"vite": "4.5.0"
},
"jest": {
"testEnvironment": "jsdom",
"moduleNameMapper": {
"^.+\\.svg$": "jest-svg-transformer",
"^.+\\.(css|less|scss)$": "identity-obj-proxy"
}
},
"babel": {
"presets": [
"@babel/preset-react"
"@babel/preset-env",
[
"@babel/preset-react",
{
"runtime": "automatic"
}
]
]
},
"browserslist": {
Expand Down
16 changes: 16 additions & 0 deletions src/MyTest.test.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react';
import { expect, test } from '@jest/globals';
import { render } from '@testing-library/react';
import '@testing-library/jest-dom';
import { ComfortReactProvider, Button } from 'comfort-react';

test('renders Button component', () => {
const label = 'aaa';
render(
<ComfortReactProvider>
<Button>{label}</Button>
</ComfortReactProvider>
);
const button = document.querySelector('button');
expect(button).toHaveTextContent(label);
});
Loading

0 comments on commit 79e0fad

Please sign in to comment.