Skip to content

Commit

Permalink
include jest files in dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
timstoddard committed Jun 14, 2019
1 parent feb6967 commit ced4ec2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -30,7 +30,6 @@ testem.log
/typings
/packages/angular-playground/output.json
/packages/angular-playground/sandboxes_modified.js
/packages/angular-playground/jest/test.js

# e2e
/e2e/*.js
Expand Down
4 changes: 2 additions & 2 deletions packages/angular-playground/cli/src/check-snapshots.ts
Expand Up @@ -13,7 +13,7 @@ import { delay, removeDynamicImports } from './utils';
const CHROME_ARGS = [ '--disable-gpu', '--no-sandbox' ];
const SANDBOX_PATH = resolvePath(__dirname, '../../../dist/build/src/shared/sandboxes.js');
const SANDBOX_DEST = resolvePath(__dirname, '../../../sandboxes_modified.js');
const TEST_PATH = resolvePath(__dirname, '../../../jest/test.js');
const TEST_PATH = resolvePath(__dirname, '../../../dist/jest/test.js');

let browser: puppeteer.Browser;

Expand Down Expand Up @@ -45,7 +45,7 @@ async function main(config: Config, hostUrl: string) {
await execAsync('cd node_modules/angular-playground');

const argv = {
config: 'node_modules/angular-playground/jest/jest-puppeteer.config.js',
config: 'node_modules/angular-playground/dist/jest/jest-puppeteer.config.js',
updateSnapshot: !!config.updateSnapshots,
} as JestConfig.Argv;
const projectPath = resolvePath('.');
Expand Down
5 changes: 3 additions & 2 deletions packages/angular-playground/package.json
Expand Up @@ -25,13 +25,14 @@
},
"scripts": {
"ngc": "ngc",
"build": "npm run app:build && npm run cli:build && npm run schematics:build",
"build": "npm run app:build && npm run cli:build && npm run schematics:build && npm run copy-jest-files",
"app:build": "gulp build",
"cli:build": "tsc -p ./cli/tsconfig.json",
"schematics:build": "tsc -p ./schematics/tsconfig.json",
"prepublishOnly": "npm run build",
"test": "jest",
"lint": "tslint --project tsconfig.json"
"lint": "tslint --project tsconfig.json",
"copy-jest-files": "cd dist && mkdir jest && cd .. && cp jest/* dist/jest"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit ced4ec2

Please sign in to comment.