-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added time fields * added new time fields to backlogitem * handle status update side-effects * status change time fields update working * added test cases for all statuses * covered status change with time field already set * fix open-cli issue * cover last branch for tests * added 4 date fields Co-authored-by: Kevin <[email protected]>
- Loading branch information
1 parent
e287a78
commit 4b6bde3
Showing
15 changed files
with
292 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,19 @@ | ||
// Add your setup here | ||
import "jest"; | ||
|
||
expect.extend({ | ||
toEqualX(actual, msgAndValueObj) { | ||
const name = msgAndValueObj.name; | ||
const value = msgAndValueObj.value; | ||
if (actual === value) { | ||
return { | ||
message: () => `${name} equals "${value}"`, | ||
pass: true | ||
}; | ||
} else { | ||
return { | ||
message: () => `${name} should equal "${value}" but received "${actual}"`, | ||
pass: false | ||
}; | ||
} | ||
} | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "atoll", | ||
"version": "0.33.0", | ||
"version": "0.34.0", | ||
"author": { | ||
"name": "Kevin Berry", | ||
"email": "[email protected]" | ||
|
@@ -17,7 +17,7 @@ | |
"build-deploy": "node ./scripts/build-deploy.js", | ||
"build:dev": "npm run build-only:dev && npm run build-deploy", | ||
"build-only:dev": "npx --no-install cross-env NODE_ENV=development node scripts/build.js", | ||
"depgraph": "npm run build:depgraph && open-cli dependency-graph.svg", | ||
"depgraph": "npm run build:depgraph && npx --no-install opener dependency-graph.svg", | ||
"build:depgraph": "depcruise -c .dependency-cruiser.js --exclude '^node_modules' --output-type dot src | dot -T svg > dependency-graph.svg", | ||
"clean": "npx rimraf --no-install build", | ||
"clean:transpiled": "npx rimraf --no-install build/transpiled", | ||
|
@@ -36,7 +36,7 @@ | |
"test:tsc": "tsc --noEmit --project tsconfig.json", | ||
"test:jest": "npx --no-install cross-env CI=true node scripts/test.js --env=jsdom --coverage", | ||
"test:update": "npx --no-install cross-env CI=true npm test --updateSnapshot", | ||
"test:report": "open-cli ./coverage/lcov-report/index.html", | ||
"test:report": "npx --no-install opener ./coverage/lcov-report/index.html", | ||
"start:analyzer": "webpack-bundle-analyzer build/client/static/bundle-stats.json", | ||
"transpile": "babel -d build/transpiled ./src --extensions .es6,.js,.es,.jsx,.mjs,.ts,.tsx --ignore **/*.d.ts", | ||
"lint:css": "stylelint src/**/*.css", | ||
|
@@ -57,7 +57,7 @@ | |
"setup": "ts-node ./scripts/setup.ts" | ||
}, | ||
"dependencies": { | ||
"@atoll/shared": "0.33.0", | ||
"@atoll/shared": "0.34.0", | ||
"@flopflip/memory-adapter": "1.6.0", | ||
"@flopflip/react-broadcast": "10.1.11", | ||
"axios": "0.19.2", | ||
|
@@ -144,7 +144,6 @@ | |
"launchdarkly-js-client-sdk": "2.17.0", | ||
"mini-css-extract-plugin": "0.9.0", | ||
"nodemon": "2.0.2", | ||
"open-cli": "6.0.1", | ||
"postcss-assets": "5.0.0", | ||
"postcss-custom-properties": "9.1.1", | ||
"postcss-flexbugs-fixes": "4.2.1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export {}; | ||
|
||
interface MsgAndValueObj { | ||
name: string; | ||
value: any; | ||
} | ||
|
||
declare global { | ||
namespace jest { | ||
interface Matchers<R> { | ||
toEqualX(msgAndValueObj: MsgAndValueObj): R; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.