diff --git a/__tests__/fixtures/index.js b/__fixtures__/index.js similarity index 100% rename from __tests__/fixtures/index.js rename to __fixtures__/index.js diff --git a/__tests__/cli/project.test.js b/__tests__/cli/project.test.js index d36bea2..7dce712 100644 --- a/__tests__/cli/project.test.js +++ b/__tests__/cli/project.test.js @@ -2,7 +2,7 @@ const inquirer = require('inquirer').default const knexInit = require('knex') const { getConfig } = require('../../src/config') const { runAddProjectCommand } = require('../../src/cli') -const { resetDatabase, getAllProjects, getAllGithubOrgs } = require('../utils') +const { resetDatabase, getAllProjects, getAllGithubOrgs } = require('../../__utils__') const { dbSettings } = getConfig('test') diff --git a/__tests__/cli/workflows.test.js b/__tests__/cli/workflows.test.js index 245df24..57c9d8c 100644 --- a/__tests__/cli/workflows.test.js +++ b/__tests__/cli/workflows.test.js @@ -2,9 +2,9 @@ const inquirer = require('inquirer').default const knexInit = require('knex') const { getConfig } = require('../../src/config') const { runWorkflowCommand, listWorkflowCommand } = require('../../src/cli') -const { resetDatabase, getAllProjects, getAllGithubOrgs, addGithubOrg, addProject } = require('../utils') +const { resetDatabase, getAllProjects, getAllGithubOrgs, addGithubOrg, addProject } = require('../../__utils__') const { github } = require('../../src/providers') -const { sampleGithubOrg } = require('../fixtures') +const { sampleGithubOrg } = require('../../__fixtures__') const { dbSettings } = getConfig('test') diff --git a/__tests__/index.test.js b/__tests__/index.test.js deleted file mode 100644 index 0c42634..0000000 --- a/__tests__/index.test.js +++ /dev/null @@ -1,5 +0,0 @@ -describe('Demo test', () => { - it('should pass', () => { - expect(1 + 1).toBe(2) - }) -}) diff --git a/__tests__/schemas.test.js b/__tests__/schemas.test.js index 1a1b9e4..52a111b 100644 --- a/__tests__/schemas.test.js +++ b/__tests__/schemas.test.js @@ -1,4 +1,4 @@ -const { sampleGithubOrg } = require('./fixtures') +const { sampleGithubOrg } = require('../__fixtures__') const { validateGithubOrg } = require('../src/schemas') describe('schemas', () => { diff --git a/__tests__/utils/index.js b/__utils__/index.js similarity index 100% rename from __tests__/utils/index.js rename to __utils__/index.js diff --git a/jest.config.js b/jest.config.js index 1d618fc..23765eb 100644 --- a/jest.config.js +++ b/jest.config.js @@ -3,16 +3,13 @@ export default { 'src/**/*.js' ], coveragePathIgnorePatterns: [ + '/__fixtures__/', '/__tests__/', + '/__utils__/', '/src/database/migrations/', '/src/config/' ], transformIgnorePatterns: [ '/node_modules/(?!octokit).+\\.js$' - ], - modulePathIgnorePatterns: [ - '/__tests__/utils/', - '/__tests__/fixtures/' - ] }