Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Update tsconfig.json

.

Update public-methods-error-boundary.test.js

Update public-methods-error-boundary.test.js
  • Loading branch information
jacob-statsig committed Jun 13, 2023
1 parent 4e410d3 commit c72dc3c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import errorBoundaryCheck from "../../custom_eslint/public-methods-error-boundary";
import errorBoundaryCheck from "../public-methods-error-boundary";
import { RuleTester } from "eslint";

const ruleTester = new RuleTester({
Expand Down
2 changes: 1 addition & 1 deletion custom_eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require("path");

const ruleFiles = fs
.readdirSync(__dirname)
.filter((file) => file !== "index.js" && !file.endsWith("test.js"));
.filter((file) => file !== "index.js" && !file.includes('__tests__') && !file.endsWith("test.js"));

const rules = Object.fromEntries(
ruleFiles.map((file) => [path.basename(file, ".js"), require("./" + file)])
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
roots: ['./'],
setupFilesAfterEnv: ['<rootDir>/src/__tests__/jest.setup.ts'],
testMatch: ['**/__tests__/**/*.test.(j|t)s', '**/?(*.)+test.(j|t)s'],
testPathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/dist/'],
testPathIgnorePatterns: ['<rootDir>/custom_eslint/', '<rootDir>/node_modules/', '<rootDir>/dist/'],
transform: {
'^.+\\.ts$': 'ts-jest',
},
Expand Down

0 comments on commit c72dc3c

Please sign in to comment.