You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
feature
What is the current behavior?
// babelrc (each brand contains it's babelrc)
{
"alias": {
"brand": "./brandX"
}
}
// Component
import {theme} from 'brand'; // theme specific to babelrc config
export const Component = ({children}) => <Text style={theme}> {children} </Text>;
// Test
test('snapshot', () => {
const tree = renderer.create(<MyComponent />).toJSON();
expect(tree).toMatchSnapshot($BRAND);
});
Outputs a snapshot for each brand, but says all other are obsolete.
What is the expected behavior?
When one app has multibranding, it requires a snapshot of each brand.
The best way to store them next to each other seem to be the argument in toMatchSnapshot function. toMatchSnapshot('someBrand')
I'd like to introduce skipObsolete for that kind of scenarios. yarn test --skipObsolete
This will not make the CI fail if I'm testing my snapshots against one brand (which is already working), but should not throw that there are obsolete tests
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Do you want to request a feature or report a bug?
feature
What is the current behavior?
Outputs a snapshot for each brand, but says all other are obsolete.
What is the expected behavior?
When one app has multibranding, it requires a snapshot of each brand.
The best way to store them next to each other seem to be the argument in
toMatchSnapshot
function.toMatchSnapshot('someBrand')
I'd like to introduce
skipObsolete
for that kind of scenarios.yarn test --skipObsolete
This will not make the CI fail if I'm testing my snapshots against one brand (which is already working), but should not throw that there are obsolete tests
The text was updated successfully, but these errors were encountered: