-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b08e750
commit 1587fba
Showing
17 changed files
with
395 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
core/config/test/__snapshots__/require-context.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`require-context exact names 1`] = ` | ||
Array [ | ||
Object { | ||
"directory": "/Users/atanasster/component-controls/examples/stories/src/stories", | ||
"regExp": /controls-editors-starter\\.stories\\.tsx/, | ||
"useSubdirectories": false, | ||
}, | ||
Object { | ||
"directory": "/Users/atanasster/component-controls/examples/stories/src/blogs", | ||
"regExp": /gatsby-nextjs-storybook\\.mdx/, | ||
"useSubdirectories": false, | ||
}, | ||
] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
stories: [ | ||
'../../../../../examples/stories/src/stories/controls-editors-starter.stories.tsx', | ||
'../../../../../examples/stories/src/blogs/gatsby-nextjs-storybook.mdx', | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { loadConfiguration, configRequireContext } from '../src/index'; | ||
|
||
describe('require-context', () => { | ||
it('exact names', () => { | ||
expect( | ||
configRequireContext( | ||
loadConfiguration(__dirname, undefined, [ | ||
'file', | ||
'name', | ||
'--config', | ||
'fixtures/exact-names', | ||
]), | ||
), | ||
).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.