Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
testMatch: ["**/tests/**/*.test.ts"],
testMatch: ["**/*.test.ts"],
moduleFileExtensions: ["ts", "js", "json"],
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"scripts": {
"test": "jest",
"typecheck": "tsc --noEmit",
"lint": "eslint \"api/**/*.{js,ts}\" \"scripts/**/*.{js,ts}\" \"tests/**/*.ts\"",
"format": "prettier --write \"api/**/*.{js,ts}\" \"scripts/**/*.{js,ts}\" \"tests/**/*.ts\""
"lint": "eslint \"api/**/*.{js,ts}\" \"scripts/**/*.{js,ts}\"",
"format": "prettier --write \"api/**/*.{js,ts}\" \"scripts/**/*.{js,ts}\""
},
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { calcPercentages as calcPercentagesPie } from '../scripts/renderers/renderLangPie';
import { calcPercentages as calcPercentagesBar } from '../scripts/renderers/renderLangPercent';
import { LanguageData } from '../types';
import { calcPercentages as calcPercentagesPie } from './renderLangPie';
import { calcPercentages as calcPercentagesBar } from './renderLangPercent';
import { LanguageData } from '../../types';

const mockLanguages: LanguageData[] = [
{ name: 'JavaScript', color: '#f1e05a', count: 50 },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { renderErrorCard } from '../scripts/renderers/renderErrorCard';
import { CARD_WIDTH, CARD_HEIGHT } from '../scripts/utils/constants';
import { renderErrorCard } from './renderErrorCard';
import { CARD_WIDTH, CARD_HEIGHT } from '../utils/constants';

describe('renderErrorCard', () => {
test('returns an SVG string', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VALID_USERNAME } from '../scripts/utils/validators';
import { VALID_USERNAME } from './validators';

describe('VALID_USERNAME', () => {
test('accepts valid usernames', () => {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"resolveJsonModule": true,
"allowJs": true
},
"include": ["api/**/*", "scripts/**/*", "types/**/*", "tests/**/*"],
"include": ["api/**/*", "scripts/**/*", "types/**/*"],
"exclude": ["node_modules", "dist"]
}
Loading