diff --git a/.codeclimate.yml b/.codeclimate.yml index 92fe9c1f4..ed0f6f803 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -56,20 +56,22 @@ plugins: config: count_threshold: 3 exclude_patterns: + - "**/*.test.js" + - "**/*.test.jsx" + - "**/.eslintrc.js" + - "**/__stories__/" + - "**/__tests__/" + - "*.js" + - "app/assets/javascripts/lib/" + - "bin/" - "config/" - "db/" - "dist/" - "features/" + - "lib/tasks/" - "node_modules/" - "script/" - "spec/" - "test/" - "tests/" - "vendor/" - - "lib/tasks/" - - "app/assets/javascripts/lib/" - - "bin/" - - "**/__tests__/" - - "**/.eslintrc.js" - - "*.js" - - "**/__stories__/" diff --git a/app/javascript/modCenter/singleArticle/singleArticle.test.jsx b/app/javascript/modCenter/singleArticle/__tests__/singleArticle.test.jsx similarity index 99% rename from app/javascript/modCenter/singleArticle/singleArticle.test.jsx rename to app/javascript/modCenter/singleArticle/__tests__/singleArticle.test.jsx index fdd04a424..91236336c 100644 --- a/app/javascript/modCenter/singleArticle/singleArticle.test.jsx +++ b/app/javascript/modCenter/singleArticle/__tests__/singleArticle.test.jsx @@ -3,7 +3,7 @@ import { h } from 'preact'; import { axe } from 'jest-axe'; import { render, getNodeText, fireEvent } from '@testing-library/preact'; -import SingleArticle from './index'; +import SingleArticle from '../index'; const testArticle1 = { id: 1, diff --git a/app/javascript/onboarding/components/_tests/EmailPreferencesForm.test.jsx b/app/javascript/onboarding/components/__tests__/EmailPreferencesForm.test.jsx similarity index 100% rename from app/javascript/onboarding/components/_tests/EmailPreferencesForm.test.jsx rename to app/javascript/onboarding/components/__tests__/EmailPreferencesForm.test.jsx diff --git a/app/javascript/onboarding/components/_tests/FollowTags.test.jsx b/app/javascript/onboarding/components/__tests__/FollowTags.test.jsx similarity index 100% rename from app/javascript/onboarding/components/_tests/FollowTags.test.jsx rename to app/javascript/onboarding/components/__tests__/FollowTags.test.jsx diff --git a/app/javascript/onboarding/components/_tests/FollowUsers.test.jsx b/app/javascript/onboarding/components/__tests__/FollowUsers.test.jsx similarity index 100% rename from app/javascript/onboarding/components/_tests/FollowUsers.test.jsx rename to app/javascript/onboarding/components/__tests__/FollowUsers.test.jsx diff --git a/app/javascript/onboarding/components/_tests/IntroSlide.test.jsx b/app/javascript/onboarding/components/__tests__/IntroSlide.test.jsx similarity index 100% rename from app/javascript/onboarding/components/_tests/IntroSlide.test.jsx rename to app/javascript/onboarding/components/__tests__/IntroSlide.test.jsx diff --git a/app/javascript/onboarding/components/_tests/ProfileForm.test.jsx b/app/javascript/onboarding/components/__tests__/ProfileForm.test.jsx similarity index 100% rename from app/javascript/onboarding/components/_tests/ProfileForm.test.jsx rename to app/javascript/onboarding/components/__tests__/ProfileForm.test.jsx