Skip to content

Commit

Permalink
fix(test): do not build docs from test command
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Sep 2, 2020
1 parent 3732171 commit 557b371
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/cli/task-test.ts
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion test/end-to-end/.gitignore
@@ -1 +1,3 @@
dist-react
dist-react
docs.json
docs.d.ts
4 changes: 4 additions & 0 deletions test/end-to-end/stencil.config.ts
Expand Up @@ -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',
Expand Down
3 changes: 3 additions & 0 deletions test/end-to-end/test-end-to-end-dist.js
Expand Up @@ -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');

0 comments on commit 557b371

Please sign in to comment.