Skip to content

Commit bb1c5a7

Browse files
author
rgupta2
committed
avoid watching .idea directory during development which contains IDE related files
1 parent 74fd2b4 commit bb1c5a7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/resources/settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
configFile: {
55
src: './oc.json'
66
},
7-
filesToIgnoreOnDevWatch: /node_modules|package\.tar\.gz|_package|\.sw[op]|\.git\/|\.DS_Store|oc\.json/,
7+
filesToIgnoreOnDevWatch: /node_modules|package\.tar\.gz|_package|\.sw[op]|\.git\/|\.idea\/|\.DS_Store|oc\.json/,
88
maxLoopIterations: 1e9,
99
registry: {
1010
acceptRenderedHeader: 'application/vnd.oc.rendered+json',

test/unit/resources-settings.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ describe('resources : settings', () => {
3434
});
3535
});
3636

37+
describe('when something in the .idea folder changes', () => {
38+
it('should ignore it', () => {
39+
const result = execute('/path/to/.idea/HEAD');
40+
expect(result).to.be.true;
41+
});
42+
});
43+
3744
describe('when node_modules changes', () => {
3845
it('should ignore it', () => {
3946
const result = execute('/path/to/node_modules/something-changed');

0 commit comments

Comments
 (0)