File tree 3 files changed +262
-10
lines changed
3 files changed +262
-10
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ import {
8
8
Config ,
9
9
globalSetup ,
10
10
} from "@playwright/test"
11
- import * as crypto from "crypto "
11
+ import * as bcrypt from "bcrypt "
12
12
import path from "path"
13
13
import { PASSWORD } from "./utils/constants"
14
14
import * as wtfnode from "./utils/wtfnode"
15
15
16
16
// Playwright doesn't like that ../src/node/util has an enum in it
17
17
// so I had to copy hash in separately
18
18
const hash = ( str : string ) : string => {
19
- return crypto . createHash ( "sha256" ) . update ( str ) . digest ( "hex" )
19
+ return bcrypt . hashSync ( str , 10 )
20
20
}
21
21
22
22
const cookieToStore = {
Original file line number Diff line number Diff line change 3
3
"#" : " We must put jest in a sub-directory otherwise VS Code somehow picks up the types and generates conflicts with mocha." ,
4
4
"devDependencies" : {
5
5
"@playwright/test" : " ^0.1101.0-alpha2" ,
6
+ "@types/bcrypt" : " ^5.0.0" ,
6
7
"@types/jest" : " ^26.0.20" ,
7
8
"@types/jsdom" : " ^16.2.6" ,
8
9
"@types/node-fetch" : " ^2.5.8" ,
9
10
"@types/supertest" : " ^2.0.10" ,
11
+ "bcrypt" : " ^5.0.1" ,
10
12
"jest" : " ^26.6.3" ,
11
13
"jsdom" : " ^16.4.0" ,
12
14
"node-fetch" : " ^2.6.1" ,
You can’t perform that action at this time.
0 commit comments