Skip to content

chore: update dependencies to Angular version 8.0.0 #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
registry=http://registry.npmjs.org/
registry=http://registry.npmjs.org/
File renamed without changes.
14 changes: 11 additions & 3 deletions jest.base.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
module.exports = {
preset: 'jest-preset-angular',
rootDir: '../',
setupTestFrameworkScriptFile: '<rootDir>/test.ts',
setupFilesAfterEnv: ['<rootDir>/test.ts'],
testURL: 'http://localhost',
globals: {
'ts-jest': {
tsConfigFile: './tsconfig.spec.json',
tsConfig: './tsconfig.spec.json',
stringifyContentPathRegex: '\\.html$',
astTransformers: [require.resolve('jest-preset-angular/InlineHtmlStripStylesTransformer')],
},
__TRANSFORM_HTML__: true,
},
transform: {
'^.+\\.(ts|js|html)$': 'ts-jest',
},
snapshotSerializers: [
'jest-preset-angular/AngularSnapshotSerializer.js',
'jest-preset-angular/HTMLCommentSerializer.js',
],
};
62 changes: 31 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,41 +26,41 @@
"pkgRoot": "dist/@angular-extensions/testing-library"
},
"dependencies": {
"@angular/animations": "^7.0.0",
"@angular/common": "^7.0.0",
"@angular/compiler": "^7.0.0",
"@angular/core": "^7.0.0",
"@angular/forms": "^7.0.0",
"@angular/http": "^7.0.0",
"@angular/platform-browser": "^7.0.0",
"@angular/platform-browser-dynamic": "^7.0.0",
"@angular/router": "^7.0.0",
"@angular/animations": "^8.0.0",
"@angular/common": "^8.0.0",
"@angular/compiler": "^8.0.0",
"@angular/core": "^8.0.0",
"@angular/forms": "^8.0.0",
"@angular/platform-browser": "^8.0.0",
"@angular/platform-browser-dynamic": "^8.0.0",
"@angular/router": "^8.0.0",
"@phenomnomnominal/tsquery": "^3.0.0",
"core-js": "^2.5.4",
"dom-testing-library": "^4.0.1",
"rxjs": "^6.3.3",
"core-js": "^3.1.3",
"dom-testing-library": "^4.1.1",
"rxjs": "^6.5.2",
"tslint": "^5.16.0",
"zone.js": "^0.8.26"
"zone.js": "~0.9.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.10.0",
"@angular-devkit/build-ng-packagr": "~0.7.1",
"@angular/cli": "~7.0.2",
"@angular/compiler-cli": "^7.0.0",
"@angular/language-service": "^7.0.0",
"@types/node": "~10.5.4",
"codelyzer": "~4.4.2",
"husky": "^0.14.3",
"jest": "^23.4.2",
"jest-preset-angular": "^6.0.1",
"lint-staged": "^7.2.0",
"ng-packagr": "^3.0.6",
"prettier": "^1.13.7",
"@angular-devkit/build-angular": "~0.800.0",
"@angular-devkit/build-ng-packagr": "~0.800.0",
"@angular/cli": "~8.0.0",
"@angular/compiler-cli": "^8.0.0",
"@angular/language-service": "^8.0.0",
"@types/node": "~12.0.3",
"@types/jest": "~24.0.11",
"codelyzer": "^5.0.1",
"husky": "^2.3.0",
"jest": "^24.1.0",
"jest-preset-angular": "^7.1.1",
"lint-staged": "^8.1.7",
"ng-packagr": "^5.2.0",
"prettier": "^1.17.1",
"rimraf": "^2.6.3",
"semantic-release": "^15.8.1",
"ts-node": "~7.0.0",
"tsickle": "0.32.1",
"tslib": "^1.9.3",
"typescript": "~3.1.3"
"semantic-release": "^15.13.12",
"ts-node": "~8.2.0",
"tsickle": "0.35.0",
"tslib": "^1.9.0",
"typescript": "~3.4.5"
}
}
3 changes: 3 additions & 0 deletions projects/jest-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
"url": "https://github.com/angular-extensions/testing-library/issues"
},
"homepage": "https://github.com/angular-extensions/testing-library#readme",
"peerDependencies": {
"jest": ">=23.4.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
1 change: 1 addition & 0 deletions projects/jest-utils/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"allowSyntheticDefaultImports": true,
"types": [],
"lib": ["dom", "es2015"]
},
Expand Down
6 changes: 3 additions & 3 deletions projects/testing-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
},
"homepage": "https://github.com/testing-library/angular-testing-library#readme",
"peerDependencies": {
"@angular/common": "^7.0.0",
"@angular/core": "^7.0.0"
"@angular/common": "^8.0.0",
"@angular/core": "^8.0.0"
},
"dependencies": {
"dom-testing-library": "^4.0.1",
"dom-testing-library": "^4.1.0",
"@phenomnomnominal/tsquery": "^3.0.0",
"tslint": "^5.16.0"
},
Expand Down
10 changes: 8 additions & 2 deletions projects/testing-library/tests/form/form.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
<label for="username-input">Username</label>
<input id="username-input" placeholder="Username..." name="username" formControlName="username" />
<label id="password-label">Password</label>
<input placeholder="Password..." type="password" name="password" aria-labelledby="password-label" formControlName="password"
<input
placeholder="Password..."
type="password"
name="password"
aria-labelledby="password-label"
formControlName="password"
/>
<button type="submit">Submit</button>
</form>
<div>
<div></div>
</div>
3 changes: 1 addition & 2 deletions projects/testing-library/tests/form/form.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { FormBuilder, FormGroup, Validators } from '@angular/forms';
templateUrl: './form.component.html',
})
export class LoginFormComponent {
@Output()
handleLogin = new EventEmitter<{ username: string; password: string }>();
@Output() handleLogin = new EventEmitter<{ username: string; password: string }>();

loginForm: FormGroup;
constructor(private fb: FormBuilder) {
Expand Down
4 changes: 2 additions & 2 deletions projects/testing-library/tests/form/form.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ReactiveFormsModule } from '@angular/forms';
import { ReactiveFormsModule, FormGroup, FormBuilder, Validators } from '@angular/forms';
import { render } from '../../src/public_api';
import { Component, Output, EventEmitter } from '@angular/core';
import { LoginFormComponent } from './form.component';

test('login form submits using the component syntax', async () => {
Expand All @@ -9,7 +10,6 @@ test('login form submits using the component syntax', async () => {
};

const { container, getByLabelText, getByText, input, submit } = await render(LoginFormComponent, {
declarations: [LoginFormComponent],
imports: [ReactiveFormsModule],
componentProperties: {
handleLogin: handleLogin as any,
Expand Down
1 change: 0 additions & 1 deletion src/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"module": "es2015",
"types": []
},
"exclude": [
Expand Down
8 changes: 5 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"importHelpers": true,
"module": "esnext",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"target": "es2015",
"typeRoots": ["node_modules/@types"],
"lib": ["es2017", "dom"],
"paths": {
"@angular-extensions/testing-library": ["dist/testing-library"],
"@angular-extensions/testing-library/*": ["dist/testing-library/*"]
"@angular-extensions/testing-library": ["dist/@angular-extensions/testing-library"],
"@angular-extensions/testing-library/*": ["dist/@angular-extensions/testing-library/*"]
}
}
}
8 changes: 4 additions & 4 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@
"variable-name": false,
"whitespace": [true, "check-branch", "check-decl", "check-operator", "check-separator", "check-type"],
"no-output-on-prefix": true,
"use-input-property-decorator": true,
"use-output-property-decorator": true,
"use-host-property-decorator": true,
"no-inputs-metadata-property": true,
"no-outputs-metadata-property": true,
"no-host-metadata-property": true,
"no-input-rename": true,
"no-output-rename": true,
"use-life-cycle-interface": true,
"use-lifecycle-interface": true,
"use-pipe-transform-interface": true,
"component-class-suffix": true,
"directive-class-suffix": true
Expand Down
Loading