Skip to content

Commit

Permalink
delete istanbul
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophie committed Feb 14, 2023
1 parent 13a0ee8 commit 4aa5a73
Show file tree
Hide file tree
Showing 6 changed files with 906 additions and 476 deletions.
2 changes: 1 addition & 1 deletion server/apps/frontend/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["src/**/*.spec.ts", "src/mocks/**/*.ts", "*.config.ts"]
"devDependencies": ["src/**/*.spec.ts?(x)", "src/mocks/**/*.ts", "*.config.ts"]
}
],
"react/function-component-definition": [
Expand Down
3 changes: 1 addition & 2 deletions server/apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
"jsdom": "21.1.0",
"react-test-renderer": "18.2.0",
"start-server-and-test": "^1.15.3",
"ts-jest": "29.0.5",
"typescript": "4.9.5",
"vite": "4.1.1",
"vitest": "0.28.4"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { useRef } from 'react';
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { it, describe, test, expect, vi } from 'vitest';
import { useRef } from 'react';
import { describe, expect, it, test, vi } from 'vitest';

import { SellerForm } from './SellerForm';

vi.mock('react', () => {
const mUseRef = vi.fn();
return {
Expand Down
2 changes: 1 addition & 1 deletion server/apps/frontend/src/Seller/SellerForm/SellerForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const SellerForm = ({
</div>
<div className="col-auto align-self-end">
<button
//TODO: aria-pressed (add the state ?)
// TODO: aria-pressed (add the state ?)
aria-label="register-button"
type="submit"
className="btn btn-success"
Expand Down
9 changes: 1 addition & 8 deletions server/apps/frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,10 @@

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import istanbul from 'vite-plugin-istanbul';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
istanbul({
cypress: true,
requireEnv: false,
}),
],
plugins: [react()],
test: {
globals: true,
environment: 'jsdom',
Expand Down
Loading

0 comments on commit 4aa5a73

Please sign in to comment.