Chore: convert last test to RTL and remove Enzyme references (#61918)

convert last test to RTL and remove enzyme references
This commit is contained in:
Ashley Harrison
2023-01-24 09:20:47 +00:00
committed by GitHub
parent 479da46a9e
commit 92a750a732
10 changed files with 98 additions and 452 deletions

View File

@@ -1,13 +1,10 @@
import { regexp } from '@betterer/regexp';
import { BettererFileTest } from '@betterer/betterer';
import { ESLint, Linter } from 'eslint';
import { existsSync } from 'fs';
import { exec } from 'child_process';
import path from 'path';
import glob from 'glob';
export default {
'no enzyme tests': () => regexp(/from 'enzyme'/g).include('**/*.test.*'),
'better eslint': () => countEslintErrors().include('**/*.{ts,tsx}'),
'no undocumented stories': () => countUndocumentedStories().include('**/*.story.tsx'),
};