Skip to content

Commit

Permalink
Merge pull request #1127 from AzureAD/authorization-code-flow-testing
Browse files Browse the repository at this point in the history
Adding tests and code coverage to Auth Code Flow
  • Loading branch information
Prithvi Kanherkar committed Nov 24, 2019
2 parents e9cf682 + 63adbcb commit 489f872
Show file tree
Hide file tree
Showing 43 changed files with 12,007 additions and 263 deletions.
16 changes: 16 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"presets": [
"@babel/preset-typescript",
[
"@babel/preset-env",
{
"modules": "commonjs"
}
]
],
"plugins": [
"@babel/proposal-class-properties",
"@babel/proposal-object-rest-spread",
"istanbul"
]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ paket-files/

# MSAL specific ignore files
node_modules/
.nyc_output/
typings/
lib-commonjs/
lib-es6/
Expand Down
8 changes: 8 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "@istanbuljs/nyc-config-babel",
"extension": [
".ts"
],
"all": true,
"reporter": "text-lcov"
}
5 changes: 5 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"lerna": "3.16.4",
"command": {
"run": {
"scope": ["msal", "msal-common", "msal-browser"]
}
},
"packages": [
"lib/*",
"samples/*"
Expand Down
16 changes: 16 additions & 0 deletions lib/msal-browser/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"presets": [
"@babel/preset-typescript",
[
"@babel/preset-env",
{
"modules": "commonjs"
}
]
],
"plugins": [
"@babel/proposal-class-properties",
"@babel/proposal-object-rest-spread",
"istanbul"
]
}
4 changes: 4 additions & 0 deletions lib/msal-browser/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"require": ["./test/mochaSetup.js", "@babel/polyfill"],
"spec": ["./test/**/*.spec.ts"]
}
16 changes: 16 additions & 0 deletions lib/msal-browser/.nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"extends": "@istanbuljs/nyc-config-babel",
"extension": [
".ts"
],
"include": [
"src"
],
"exclude": [
"**/*.d.ts"
],
"all": true,
"temp-dir": "../../.nyc_output",
"clean": false,
"reporter": "text-lcov"
}

0 comments on commit 489f872

Please sign in to comment.