diff --git a/src/run.js b/src/run.js index 9c066c9..96f6fff 100644 --- a/src/run.js +++ b/src/run.js @@ -74,6 +74,10 @@ const loadConfig = testPath => // Run tests on a given file const run = ({ testPath, config, globalConfig }) => { const schema = require(testPath) + + // Avoid caching for `--watch` mode + delete delete require.cache[require.resolve(testPath)] + const test = { path: testPath, title: 'OAS Linter'