Skip to content

Commit

Permalink
test: upgrade jest, remove old packages
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed Apr 12, 2018
1 parent a1d47d5 commit e38c525
Show file tree
Hide file tree
Showing 13 changed files with 506 additions and 342 deletions.
11 changes: 0 additions & 11 deletions jest-typescript.js

This file was deleted.

11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "2.0.0-beta.0",
"description": "Moment.JS pipes for Angular (timeago and more)",
"scripts": {
"build": "ng build",
"test": "ng lint && jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
Expand Down Expand Up @@ -41,14 +42,12 @@
"@angular/core": "^6.0.0-rc.3",
"@angular/language-service": "^6.0.0-rc.1",
"@angular/platform-browser": "^6.0.0-rc.3",
"@types/jest": "^20.0.2",
"copyfiles": "1.0.0",
"@types/jest": "^22.2.3",
"core-js": "^2.5.4",
"es6-shim": "0.35.1",
"jest": "^20.0.4",
"jest": "^22.4.3",
"ng-packagr": "^2.4.1",
"rimraf": "^2.6.2",
"rxjs": "^6.0.0-rc.0",
"ts-jest": "^22.4.2",
"tsickle": ">=0.25.5",
"tslib": "^1.7.1",
"tslint": "~5.9.1",
Expand All @@ -60,7 +59,7 @@
"src"
],
"transform": {
"^.+\\.ts$": "<rootDir>/jest-typescript.js"
"^.+\\.ts$": "ts-jest"
},
"setupTestFrameworkScriptFile": "<rootDir>/jest-setup.js",
"moduleFileExtensions": [
Expand Down
1 change: 0 additions & 1 deletion src/add.pipe.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'es6-shim';
import 'reflect-metadata';
import * as moment from 'moment';
import { AddPipe } from './add.pipe';
Expand Down
1 change: 0 additions & 1 deletion src/calendar.pipe.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'es6-shim';
import 'reflect-metadata';
import * as moment from 'moment';
import {NgZone} from '@angular/core';
Expand Down
2 changes: 0 additions & 2 deletions src/date-format.pipe.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'es6-shim';
import 'reflect-metadata';
import * as moment from 'moment';
import {DateFormatPipe} from './date-format.pipe';

Expand Down
2 changes: 0 additions & 2 deletions src/from-unix.pipe.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'es6-shim';
import 'reflect-metadata';
import * as moment from 'moment';
import {FromUnixPipe} from './from-unix.pipe';

Expand Down
2 changes: 0 additions & 2 deletions src/from-utc.pipe.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'es6-shim';
import 'reflect-metadata';
import * as moment from 'moment';
import { DateFormatPipe } from './date-format.pipe';
import { FromUtcPipe } from './from-utc.pipe';
Expand Down
2 changes: 0 additions & 2 deletions src/local.pipe.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'es6-shim';
import 'reflect-metadata';
import * as moment from 'moment';
import { DateFormatPipe } from './date-format.pipe';
import { LocalTimePipe } from './local.pipe';
Expand Down
2 changes: 0 additions & 2 deletions src/locale.pipe.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'es6-shim';
import 'reflect-metadata';
import * as moment from 'moment';
import { DateFormatPipe } from './date-format.pipe';
import { LocalePipe } from './locale.pipe';
Expand Down
2 changes: 0 additions & 2 deletions src/parse.pipe.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'es6-shim';
import 'reflect-metadata';
import * as moment from 'moment';
import { DateFormatPipe } from './date-format.pipe';
import { ParsePipe } from './parse.pipe';
Expand Down
2 changes: 0 additions & 2 deletions src/time-ago.pipe.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'es6-shim';
import 'reflect-metadata';
import { NgZone } from '@angular/core';
import { TimeAgoPipe } from './time-ago.pipe';
import * as moment from 'moment';
Expand Down
2 changes: 0 additions & 2 deletions src/utc.pipe.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'es6-shim';
import 'reflect-metadata';
import * as moment from 'moment';
import { DateFormatPipe } from './date-format.pipe';
import { UtcPipe } from './utc.pipe';
Expand Down
Loading

0 comments on commit e38c525

Please sign in to comment.