Skip to content

Commit

Permalink
✅ test: 升级 test demo
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed May 9, 2023
1 parent b451843 commit e7ed9fe
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions packages/bar/tests/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import '@testing-library/jest-dom';
import React from 'react';
import { render } from '@testing-library/react';

import Bar from '@arvinxu/bar';
Expand Down
2 changes: 0 additions & 2 deletions packages/foo/tests/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import '@testing-library/jest-dom';
import React from 'react';
import { render } from '@testing-library/react';

import Foo from '@arvinxu/foo';
Expand Down
4 changes: 2 additions & 2 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { defineConfig } from 'vitest/config';
import { join } from 'path';
import { defineConfig } from 'vitest/config';

export default defineConfig({
esbuild: {
jsxInject: "import React from 'react'",
},
test: {
setupFiles: './tests/test-setup.ts',
setupFiles: join(__dirname, './tests/test-setup.ts'),
environment: 'jsdom',
globals: true,
alias: {
Expand Down

0 comments on commit e7ed9fe

Please sign in to comment.