Skip to content

Commit

Permalink
test: move test outside src
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunny-unik committed Dec 17, 2023
1 parent 7dd9e13 commit 2491510
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('jest').Config} */

const config = {
modulePaths: ['<rootDir>/src/tests/'],
modulePaths: ['<rootDir>/tests/'],
};

export default config;
4 changes: 2 additions & 2 deletions src/tests/router.test.js → tests/routes/user.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import app, { appInstance } from '../index';
import app, { appInstance } from '../../src/index';
import request from 'supertest';
import { signupData } from '../utils/data/testData';
import { signupData } from '../../src/utils/data/testData';

describe('GET /user', function () {
const agent = request.agent(app);
Expand Down

0 comments on commit 2491510

Please sign in to comment.