We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98fc749 commit 039e35eCopy full SHA for 039e35e
1 file changed
test/excludes.test.js
@@ -0,0 +1,28 @@
1
+const getConfig = require('../src/libs/getConfig')
2
+const config = getConfig()
3
+const { excludes } = config
4
+const reg = new RegExp(excludes.join('|'), 'im')
5
+
6
+describe('Test Exclude Regexp', () => {
7
+ test('chore: typo', () => {
8
+ expect(reg.test('chore: typo')).toBeTruthy()
9
+ })
10
+})
11
12
13
+ test('fix: bbbbbbbbb', () => {
14
+ expect(reg.test('fix: bbbbbbbbb')).toBeFalsy()
15
16
17
18
19
+ test('chore: backup', () => {
20
+ expect(reg.test('chore: backup')).toBeTruthy()
21
22
23
24
25
+ test('chore: save the coding progress', () => {
26
+ expect(reg.test('chore: save the coding progress')).toBeTruthy()
27
28
0 commit comments