mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Prevent spec file updates from restarting dev server (#113336)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
parent
8b32407368
commit
01e6ff3b53
2 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ it('produces the right watch and ignore list', () => {
|
|||
expect(ignorePaths).toMatchInlineSnapshot(`
|
||||
Array [
|
||||
/\\[\\\\\\\\\\\\/\\]\\(\\\\\\.\\.\\*\\|node_modules\\|bower_components\\|target\\|public\\|__\\[a-z0-9_\\]\\+__\\|coverage\\)\\(\\[\\\\\\\\\\\\/\\]\\|\\$\\)/,
|
||||
/\\\\\\.test\\\\\\.\\(js\\|tsx\\?\\)\\$/,
|
||||
/\\\\\\.\\(test\\|spec\\)\\\\\\.\\(js\\|ts\\|tsx\\)\\$/,
|
||||
/\\\\\\.\\(md\\|sh\\|txt\\)\\$/,
|
||||
/debug\\\\\\.log\\$/,
|
||||
<absolute path>/src/plugins/*/test/**,
|
||||
|
|
|
@ -52,7 +52,7 @@ export function getServerWatchPaths({ pluginPaths, pluginScanDirs }: Options) {
|
|||
|
||||
const ignorePaths = [
|
||||
/[\\\/](\..*|node_modules|bower_components|target|public|__[a-z0-9_]+__|coverage)([\\\/]|$)/,
|
||||
/\.test\.(js|tsx?)$/,
|
||||
/\.(test|spec)\.(js|ts|tsx)$/,
|
||||
/\.(md|sh|txt)$/,
|
||||
/debug\.log$/,
|
||||
...pluginInternalDirsIgnore,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue