Skip to content

Commit

Permalink
Merge pull request #26 from secure-dashboards/test/refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon authored Dec 5, 2024
2 parents 191615f + 921a89a commit d23033b
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 14 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion __tests__/cli/project.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
4 changes: 2 additions & 2 deletions __tests__/cli/workflows.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
5 changes: 0 additions & 5 deletions __tests__/index.test.js

This file was deleted.

2 changes: 1 addition & 1 deletion __tests__/schemas.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { sampleGithubOrg } = require('./fixtures')
const { sampleGithubOrg } = require('../__fixtures__')
const { validateGithubOrg } = require('../src/schemas')

describe('schemas', () => {
Expand Down
File renamed without changes.
7 changes: 2 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@ export default {
'src/**/*.js'
],
coveragePathIgnorePatterns: [
'<rootDir>/__fixtures__/',
'<rootDir>/__tests__/',
'<rootDir>/__utils__/',
'<rootDir>/src/database/migrations/',
'<rootDir>/src/config/'
],
transformIgnorePatterns: [
'/node_modules/(?!octokit).+\\.js$'
],
modulePathIgnorePatterns: [
'<rootDir>/__tests__/utils/',
'<rootDir>/__tests__/fixtures/'

]
}

0 comments on commit d23033b

Please sign in to comment.