Skip to content

Commit

Permalink
remove unnecessary type assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahamguo committed Mar 8, 2024
1 parent 5e04444 commit 60133ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/typescript-estree/tests/lib/persistentParse.test.ts
Expand Up @@ -124,7 +124,7 @@ function baseTests(

it('allows parsing of deeply nested new files', () => {
const PROJECT_DIR = setup(tsConfigIncludeAll, false);
const bazSlashBar = 'baz/bar' as const;
const bazSlashBar = 'baz/bar';

// parse once to: assert the config as correct, and to make sure the program is setup
expect(() => parseFile('foo', PROJECT_DIR)).not.toThrow();
Expand All @@ -149,7 +149,7 @@ function baseTests(
fs.mkdirSync(path.join(PROJECT_DIR, 'src', 'bat'));
fs.mkdirSync(path.join(PROJECT_DIR, 'src', 'bat', 'baz'));

const bazSlashBar = 'bat/baz/bar' as const;
const bazSlashBar = 'bat/baz/bar';

// write a new file and attempt to parse it
writeFile(PROJECT_DIR, bazSlashBar);
Expand All @@ -159,7 +159,7 @@ function baseTests(

it('allows renaming of files', () => {
const PROJECT_DIR = setup(tsConfigIncludeAll, true);
const bazSlashBar = 'baz/bar' as const;
const bazSlashBar = 'baz/bar';

// parse once to: assert the config as correct, and to make sure the program is setup
expect(() => parseFile('foo', PROJECT_DIR)).not.toThrow();
Expand Down Expand Up @@ -291,7 +291,7 @@ describe('persistent parse', () => {

it('handles tsconfigs with no includes/excludes (nested)', () => {
const PROJECT_DIR = setup({}, false);
const bazSlashBar = 'baz/bar' as const;
const bazSlashBar = 'baz/bar';

// parse once to: assert the config as correct, and to make sure the program is setup
expect(() => parseFile('foo', PROJECT_DIR)).not.toThrow();
Expand Down

0 comments on commit 60133ea

Please sign in to comment.