Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.

Commit 17d0575

Browse files
committed
chore: bump dependencies
1 parent 84d974e commit 17d0575

File tree

6 files changed

+1207
-1208
lines changed

6 files changed

+1207
-1208
lines changed

.babelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"presets": ["@babel/preset-typescript"],
3+
"plugins": ["@babel/plugin-transform-modules-commonjs"]
4+
}

jest.config.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
module.exports = {
22
testEnvironment: "node",
3-
transform: {
4-
"^.+\\.tsx?$": "ts-jest",
5-
},
3+
// transform: {
4+
// "^.+\\.tsx?$": "ts-jest",
5+
// },
66
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
77
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
8-
globals: {
9-
"ts-jest": {
10-
tsConfig: {
11-
noEmit: false,
12-
},
13-
},
14-
},
158
};

package.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,33 @@
3434
},
3535
"dependencies": {
3636
"@webpack-contrib/schema-utils": "^1.0.0-beta.0",
37-
"loader-utils": "^1.1.0",
38-
"react-docgen-typescript": "^1.9.0"
37+
"loader-utils": "^1.2.3",
38+
"react-docgen-typescript": "^1.12.3"
3939
},
4040
"peerDependencies": {
4141
"typescript": "*"
4242
},
4343
"devDependencies": {
44-
"@types/jest": "^23.3.2",
44+
"@babel/core": "^7.2.2",
45+
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
46+
"@babel/preset-typescript": "^7.1.0",
47+
"@types/jest": "^24.0.5",
4548
"@types/memory-fs": "^0.3.2",
46-
"@types/node": "^10.10.1",
49+
"@types/node": "^11.9.4",
4750
"@types/react": "^16.4.14",
4851
"@types/webpack": "^4.4.12",
49-
"jest": "^23.6.0",
52+
"jest": "^24.1.0",
5053
"memory-fs": "^0.4.1",
5154
"pre-commit": "^1.2.2",
5255
"prettier": "^1.14.3",
53-
"react": "^16.5.2",
54-
"rimraf": "^2.6.2",
55-
"ts-jest": "^23.10.1",
56-
"ts-loader": "^5.1.1",
56+
"react": "^16.8.2",
57+
"rimraf": "^2.6.3",
58+
"ts-loader": "^5.3.3",
5759
"tslint": "^5.10.0",
5860
"tslint-config-airbnb": "^5.11.0",
5961
"tslint-config-prettier": "^1.13.0",
6062
"tslint-plugin-prettier": "^2.0.0",
61-
"typescript": "^3.0.3",
62-
"webpack": "^4.19.1"
63+
"typescript": "^3.3.3",
64+
"webpack": "^4.29.4"
6365
}
6466
}

src/loader.spec.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,14 @@ it("marks the loader as being cacheable", () => {
2727
// Execute loader with its "this" set to an instance of LoaderContext.
2828
function executeLoaderWithBoundContext() {
2929
loader.call(
30-
{
30+
({
3131
async: mockLoaderContextAsyncCallback,
3232
cacheable: mockLoaderContextCacheable,
3333
resourcePath: mockLoaderContextResourcePath(),
34-
} as Partial<webpack.loader.LoaderContext>,
34+
} as Pick<
35+
webpack.loader.LoaderContext,
36+
"async" | "cacheable" | "resourcePath"
37+
>) as webpack.loader.LoaderContext,
3538
"// Original Source Code",
3639
);
3740
}

src/webpack.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import fs from "fs";
22
import path from "path";
33
import webpack from "webpack";
4-
import MemoryFS = require("memory-fs");
4+
// import MemoryFS = require("memory-fs");
5+
import MemoryFS from "memory-fs";
56

67
describe("all component fixtures compile successfully", () => {
78
const fixtureFilenames = fs

0 commit comments

Comments
 (0)