Skip to content

Commit

Permalink
test: use .test as extension instead of .spec
Browse files Browse the repository at this point in the history
  • Loading branch information
anniehu4 committed Apr 20, 2022
1 parent cae5341 commit 6384dc3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"error",
{
"devDependencies": [
"src/**/*.{spec,test}.{ts,tsx}",
"src/**/*.test.{ts,tsx}",
"src/**/*.stories.{ts,tsx}",
"**/*.config.{js,ts}",
"**/*.setup.{js,ts}",
Expand Down Expand Up @@ -60,7 +60,7 @@
}
},
{
"files": ["*.spec.ts", "*.spec.tsx", "*.test.ts", "*.test.tsx", "**/test/**"],
"files": ["*.test.ts", "*.test.tsx", "**/test/**"],
"plugins": ["jest"],
"extends": ["plugin:jest/recommended"],
"env": {
Expand Down
6 changes: 0 additions & 6 deletions plop-templates/Component/Component.spec.tsx.hbs

This file was deleted.

6 changes: 6 additions & 0 deletions plop-templates/Component/Component.test.tsx.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import {generateSnapshots} from '@chanzuckerberg/story-utils';
import * as stories from './{{pascalCase name}}.stories';

describe('<{{pascalCase name}} />', () => {
generateSnapshots(stories);
});

0 comments on commit 6384dc3

Please sign in to comment.