Skip to content

Commit

Permalink
test: Ignore .test
Browse files Browse the repository at this point in the history
  • Loading branch information
dca committed Aug 13, 2023
1 parent 143aad6 commit 4f8621c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pokedex-for-kids-web/sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sonar.organization=dca
sonar.javascript.lcov.reportPaths=./coverage/lcov.info

sonar.sources=src
sonar.exclusions=**/*.json,**/layout.json
sonar.exclusions=**/*.json,**/*.test.*,**/layout.json


# Encoding of the source code. Default is default system encoding
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { render } from '@testing-library/react';
import Home from '../page'; // 請替換為你的 Home component 的實際路徑
import Home from './page'; //

// 模擬 next/router 的 useRouter hook
jest.mock('next/navigation', () => ({
Expand Down

0 comments on commit 4f8621c

Please sign in to comment.