diff --git a/src/cli/task-test.ts b/src/cli/task-test.ts index 8ba346f40a5..2ef8dde1147 100644 --- a/src/cli/task-test.ts +++ b/src/cli/task-test.ts @@ -8,6 +8,7 @@ export const taskTest = async (config: Config) => { } try { + config.buildDocs = false; const testingRunOpts: TestingRunOptions = { e2e: !!config.flags.e2e, screenshot: !!config.flags.screenshot, diff --git a/test/end-to-end/.gitignore b/test/end-to-end/.gitignore index 97a6d421728..6577627f09b 100644 --- a/test/end-to-end/.gitignore +++ b/test/end-to-end/.gitignore @@ -1 +1,3 @@ -dist-react \ No newline at end of file +dist-react +docs.json +docs.d.ts \ No newline at end of file diff --git a/test/end-to-end/stencil.config.ts b/test/end-to-end/stencil.config.ts index 80c6efc674e..c4c54bad7b5 100644 --- a/test/end-to-end/stencil.config.ts +++ b/test/end-to-end/stencil.config.ts @@ -39,6 +39,10 @@ export const config: Config = { { type: 'dist-hydrate-script', }, + { + type: 'docs-json', + file: 'docs.json', + }, reactOutputTarget({ componentCorePackage: '@stencil/e2e-react-output-target', proxiesFile: './dist-react/components.ts', diff --git a/test/end-to-end/test-end-to-end-dist.js b/test/end-to-end/test-end-to-end-dist.js index c5158cc7f02..348444da852 100644 --- a/test/end-to-end/test-end-to-end-dist.js +++ b/test/end-to-end/test-end-to-end-dist.js @@ -42,4 +42,7 @@ fs.accessSync(path.join(wwwDir, 'index.html')); fs.accessSync(path.join(__dirname, 'dist-react', 'components.ts')); +fs.accessSync(path.join(__dirname, 'docs.json')); +fs.accessSync(path.join(__dirname, 'docs.d.ts')); + console.log('🍄 validated test/end-to-end/dist files\n');