1
0
mirror of https://github.com/pavlobu/deskreen.git synced 2025-05-28 05:10:09 -07:00

move unit tests close to source code

This commit is contained in:
Pavlo Buidenkov 2020-08-31 15:29:53 +03:00
parent c8a66d1074
commit 79679ad86e
5 changed files with 6 additions and 9 deletions

View File

@ -6,8 +6,8 @@ import { BrowserRouter as Router } from 'react-router-dom';
import renderer from 'react-test-renderer';
import { Provider } from 'react-redux';
import { configureStore } from '@reduxjs/toolkit';
import Counter from '../../../app/features/counter/Counter';
import * as counterSlice from '../../../app/features/counter/counterSlice';
import Counter from './Counter';
import * as counterSlice from './counterSlice';
Enzyme.configure({ adapter: new Adapter() });
jest.useFakeTimers();

View File

@ -1,8 +1,5 @@
import { AnyAction } from 'redux';
import counterReducer, {
increment,
decrement,
} from '../../app/features/counter/counterSlice';
import counterReducer, { increment, decrement } from './counterSlice';
describe('reducers', () => {
describe('counter', () => {

View File

@ -1,9 +1,9 @@
sonar.projectKey=test-electron-react-boilerplate
# sonar.testExecutionReportPaths=test-reporter.xml
sonar.testExecutionReportPaths=test-reports/test-reporter.xml
sonar.typescript.lcov.reportPaths=coverage/lcov.info
sonar.sources=./app
sonar.tests=./test
sonar.coverage.exclusions=app/**/*.spec.ts,app/**/*.spec.tsx,app/**/*.test.ts,app/**/*.test.tsx,app/serviceWorker.ts,app/index.tsx
sonar.sources=app
sonar.tests=test
sonar.host.url=http://localhost:9000
sonar.login=d0c254aaff5ebd89dd5c6f0663238ab6ad5fddea
sonar.exclusions=app/client/**