Skip to content

Commit 056e262

Browse files
committed
test: improve assert for exported configs
1 parent 977bf74 commit 056e262

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/index.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,10 @@ it.each(['recommended', 'angular', 'react', 'vue'])(
1515
'should export proper "%s" config',
1616
configName => {
1717
expect(configs[configName]).toMatchSnapshot();
18+
19+
// make sure all enabled rules start by "testing-library/" prefix
20+
Object.keys(configs[configName].rules).forEach(ruleEnabled => {
21+
expect(ruleEnabled).toMatch(/^testing-library\/.+$/);
22+
});
1823
}
1924
);

0 commit comments

Comments
 (0)