Skip to content

Commit

Permalink
chore: prevent jest to try to run non-test files #610
Browse files Browse the repository at this point in the history
😄 I find that pretty ironic: without this change, jest tries to run fixutre.js & Italic.js as test files!
  • Loading branch information
xavxyz committed Mar 13, 2018
1 parent cd58141 commit dab4ab8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Expand Up @@ -10,19 +10,21 @@ describe('ES module / Current working directory path includes "."', () => {

beforeEach(async () => {
files = await findFixtureFiles({
rootPath: join(__dirname, '.fsmocks')
rootPath: join(__dirname, '.dot/__fsmocks__')
});
});

it('has fixture path', () => {
expect(files[0].filePath).toBe(resolve('./.fsmocks/fixture'));
expect(files[0].filePath).toBe(resolve('./.dot/__fsmocks__/fixture'));
});

it('has component name', () => {
expect(files[0].components[0].name).toBe('Italic');
});

it('has component path', () => {
expect(files[0].components[0].filePath).toBe(resolve('./.fsmocks/Italic'));
expect(files[0].components[0].filePath).toBe(
resolve('./.dot/__fsmocks__/Italic')
);
});
});

0 comments on commit dab4ab8

Please sign in to comment.