Skip to content

Commit

Permalink
fix: don't compile test files
Browse files Browse the repository at this point in the history
  • Loading branch information
devianllert committed Aug 30, 2019
1 parent 9c8c13e commit 05d25e1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 48 deletions.
7 changes: 2 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ module.exports = {
transform: {
'^.+\\.ts$': 'ts-jest',
},
transformIgnorePatterns: [
'/node_modules/',
'/dist/',
],
testMatch: ['**/*.{spec,test}.{js,ts}'],
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$'],
testMatch: ['<rootDir>/src/**/*.{spec,test}.{js,ts}'],
testEnvironment: 'node',
};
43 changes: 5 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions src/api/add.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { Message } from 'discord.js';

import logger from '../utils/logger';

import { Bot } from '../core/BotInterface';
import { ParsedMessage } from '../core/BotCommandParser';
import { MediaItem } from '../core/BotMedia';
Expand Down
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
},
"include": [
"./src/**/*"
],
"include": ["src"],
"exclude": [
"node_modules",
"src/**/test/"
]
}

0 comments on commit 05d25e1

Please sign in to comment.