Skip to content

Commit de7c78b

Browse files
authored
improve error output and update snapshots amid changes (#536)
1 parent 7884983 commit de7c78b

13 files changed

+651
-107
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"test": "npm run test:only",
1616
"test:only": "NODE_OPTIONS=--experimental-vm-modules npx jest --silent",
1717
"test:debug": "NODE_OPTIONS=--experimental-vm-modules npx jest --silent=false",
18-
"test:record": "NODE_OPTIONS=--experimental-vm-modules FRODO_POLLY_MODE=record npx jest --silent=false --runInBand --updateSnapshot --testPathPattern",
19-
"test:record_noauth": "NODE_OPTIONS=--experimental-vm-modules FRODO_POLLY_MODE=record_noauth npx jest --silent=false --updateSnapshot --testPathIgnorePatterns cjs --testPathPattern",
20-
"test:update": "NODE_OPTIONS=--experimental-vm-modules npx jest --silent=false --updateSnapshot --testPathPattern",
18+
"test:record": "NODE_OPTIONS=--experimental-vm-modules FRODO_POLLY_MODE=record npx jest --silent=false --runInBand --updateSnapshot",
19+
"test:record_noauth": "NODE_OPTIONS=--experimental-vm-modules FRODO_POLLY_MODE=record_noauth npx jest --silent=false --updateSnapshot --testPathIgnorePatterns cjs",
20+
"test:update": "NODE_OPTIONS=--experimental-vm-modules npx jest --silent=false --updateSnapshot",
2121
"lint": "eslint --ext .ts --ignore-path .gitignore .",
2222
"lint:fix": "eslint --fix --ext .ts --ignore-path .gitignore .",
2323
"clean-types": "rimraf types",

src/ops/AuthenticateOps.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,6 @@ export async function getTokens({
13251325
message: `AuthenticateOps.getTokens: Error getting tokens: ${error} Stack: ${error.stack}`,
13261326
state,
13271327
});
1328-
throw error
1329-
// throw new FrodoError(`Error getting tokens`, error);
1328+
throw new FrodoError(`Error getting tokens`, error);
13301329
}
13311330
}

0 commit comments

Comments
 (0)