Skip to content

Commit dd368e6

Browse files
committed
fix incorrect uuidv4 import
1 parent 996b92d commit dd368e6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

packages/graphql-authentication/package.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,14 @@
6767
"./src"
6868
],
6969
"transform": {
70-
"^.+\\.tsx?$": "ts-jest"
70+
"^.+\\.ts$": "ts-jest"
7171
},
72-
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
72+
"globals": {
73+
"ts-jest": {
74+
"skipBabel": true
75+
}
76+
},
77+
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(js|ts)$",
7378
"setupTestFrameworkScriptFile": "<rootDir>/src/__tests__/setup.ts",
7479
"moduleFileExtensions": [
7580
"ts",

packages/graphql-authentication/src/mutations.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as bcrypt from 'bcryptjs';
22
import * as jwt from 'jsonwebtoken';
33
import * as validator from 'validator';
4-
import uuidv4 from 'uuid/v4';
4+
import * as uuidv4 from 'uuid/v4';
55
import { getUser, Context } from './utils';
66
import { User } from './Adapter';
77
import {

0 commit comments

Comments
 (0)