kwonoj / rx-sandbox Goto Github PK
View Code? Open in Web Editor NEWMarble diagram DSL based test suite for RxJS
License: MIT License
Marble diagram DSL based test suite for RxJS
License: MIT License
Hi!
Thank you for the tool. Thats really cool. I want to use it because of beautiful expected / actual output.
Is there any possibility to add support of custom values?
Example:
const values = { a: 1, b: 2, x: 2, y: 4, t: true, f: false };
const source = hot('---a--bt--|', values);
const expected = e('---x--yf---|', values);
// ...
You will get this as a result:
"Source: ---2--4ä--|"
"Expected: ---2--4ä---|"
Is there any possibility to make it:
"Source: ---x--yt--|"
"Expected: ---x--yf---|"
?
Looks like API retrieves all information to make it possible. Looks like you don't even need to change / improve API to achieve this.
7.2.2
to 7.3.0
.This version is covered by your current version range and after updating it in your project the build failed.
lint-staged is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 1 commits.
d386c80
feat: Allow linting files outside of project folder (#495)
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
23.10.0
to 23.10.1
.This version is covered by your current version range and after updating it in your project the build failed.
ts-jest is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 13 commits.
d9c5b45
Merge pull request #743 from huafu/release/23.10.1
e4a3a09
chore(release): 23.10.1
ab94359
Merge pull request #742 from huafu/fix-740-no-js-compilation-with-allow-js
a844fd4
Merge branch 'master' into fix-740-no-js-compilation-with-allow-js
18dced1
Merge pull request #741 from huafu/e2e-weird-deep-paths
9e7d6a0
test(config): adds test related to allowJs
374dca1
fix(compile): js files were never transpiled thru TS
70fd9af
ci(cache): removes some paths from the caching
c12dfff
fix(windows): normalize paths
0141098
test(e2e): deep paths and coverage
6ccbff3
Merge pull request #736 from huafu/detect-import-and-throw-if-none
a2a4be2
fix(config): warn instead of forcing ESM interoperability
21644da
Merge pull request #735 from huafu/master
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Hi,
If you try to test an observable that emits null
, the test fails due to this error inside constructObservableMarble
when it tries to pick a symbol:
TypeError: Cannot read property 'toString' of null
at appendNotificationValue (http://localhost:9876/_karma_webpack_/webpack:/node_modules/rx-sandbox/dist/src/assert/constructObservableMarble.js:57:1)
at Object.constructObservableMarble (http://localhost:9876/_karma_webpack_/webpack:/node_modules/rx-sandbox/dist/src/assert/constructObservableMarble.js:103:1)
at Object.equal (http://localhost:9876/_karma_webpack_/webpack:/node_modules/rx-sandbox/dist/src/assert/marbleAssert.js:41:1)
at ...
Version: 1.0.0
It looks like this is no longer occurs in master thanks to a095623, so a new release should fix this issue.
23.10.1
to 23.10.2
.This version is covered by your current version range and after updating it in your project the build failed.
ts-jest is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 44 commits.
13cb48d
Merge pull request #764 from huafu/release/23.10.2
aa3e5f7
chore(release): 23.10.2
9db3337
Merge pull request #763 from huafu/wrong-error-if-import-fails
e0d6c57
fix(import): wrong error message when a module exists but fails
e765875
Merge pull request #757 from huafu/testMatch-and-testRegex
a4bbdcd
docs(preset): typos
ddc2f79
docs(preset): usage of all presets + note about testMatch
6985e07
Merge branch 'testMatch-and-testRegex' of github.com:huafu/ts-jest into testMatch-and-testRegex
6a72a87
test(cli): test migrate preset detection
febd8d3
feat(cli): CLI 'config:migrate' now detects best preset
f55d895
feat(preset): adds presets typings and export all presets
e409653
Merge branch 'master' into testMatch-and-testRegex
0534889
Merge pull request #759 from kulshekhar/dependabot/npm_and_yarn/@types/node-10.11.0
e23e0be
build(deps-dev): bump @types/node from 10.10.3 to 10.11.0
7890162
Merge branch 'master' into testMatch-and-testRegex
There are 44 commits in total.
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Love this repository!! Awesome package 👏
Is there a plan to update the dependencies and support RxJS 6?
const {marbleAssert} = rxSandbox;
const {hot, cold, e, s, getMessages, flush} = rxSandbox.create();
const coldSource$ = cold('a b |'); // work
const hotSource$ = hot(' a b |'); // error
const expected = e(' (aaa)(bbb)|');
const coldMessages = getMessages(coldSource$.switchMap(value => Observable.from([value, value, value])));
const hotMessages = getMessages(hotSource$.switchMap(value => Observable.from([value, value, value])));
flush();
marbleAssert(coldMessages).to.equal(expected);
marbleAssert(hotMessages).to.equal(expected);
Error:
"Source: -(bbb)|"
"Expected: (aaa)(bbb)|"
It would be pretty useful to be able to pass in TestMessage as items in an array to the 'e' function. It could allow developers to supply a frame number and skip having to add marble strings to put the expected message on the correct frame. It would also be useful to be able to use the same function to generate the expected messages and the messages coming out of hot/cold observables.
3.0.1
to 3.0.2
.This version is covered by your current version range and after updating it in your project the build failed.
commitizen is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
<a name"3.0.2">
The new version differs by 4 commits.
7c4703b
fix(cli): Make gz -a
working again (#573)
b81dcb3
docs: add stackoverflow tag
5436732
docs: add azure pipelines badge
55f3ebd
docs: Remove bithound badge
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
I'm trying to run the first code sample from the README with no success. I keep getting "e1.merge is not a function".
I've put together a minimum project here: https://github.com/thiagoarrais/rx-sandbox-helloworld
You should be able to reproduce by git cloning and then npm testing.
I'm using node 6 and npm 5. Here's what I'm getting on my side:
$ node -v
v6.11.2
$ npm -v
5.3.0
$ npm install
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
added 100 packages in 6.924s
$ npm test
> [email protected] test /tmp/rx-sandbox-helloworld
> mocha spec.js
1) testcase
0 passing (39ms)
1 failing
1) testcase:
TypeError: e1.merge is not a function
at Context.it (spec.js:12:35)
npm ERR! Test failed. See above for more details.
Maybe cold
doesn't return an Observable any longer? I don't know... I'm completely lost lost here...
Currently my tests need undefined
to be allowed as a token value instead of defaulting to the token name. I need this new feature to be released so that I can test properly.
Don't you think the regex syntax {n} is better than ...n...?
The current ...n... can only simulate n of dashes. But if we use {n} we can have:
const = 'a-{8}b'; // 'a--------b'
const = 'a{8}b'; // 'aaaaaaaab'
1.0.0
to 1.0.1
.This version is covered by your current version range and after updating it in your project the build failed.
husky is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 12 commits.
998339e
Lint
fd5379c
1.0.1
3c3b60d
Update CHANGELOG.md
ff64d7e
Update README.md
d6c3acb
Merge branch 'master' of https://github.com/typicode/husky
9b1ed8f
Update CHANGELOG.md
1aac5c3
husky-upgrade: don't create husky config if no hooks exist (#359)
14e4c45
Update README.md
ee39cf9
husky-upgrade
replace GIT_PARAMS with HUSKY_GIT_PARAMS (#360)
201221e
Update README.md (#361)
5926ac6
upgrader: Add trailing newline to package.json (#362)
582b6b6
Fix link in CHANGELOG.md (#357)
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
7.1.2
to 7.2.0
.This version is covered by your current version range and after updating it in your project the build failed.
@commitlint/cli is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
I use PhantomJS 2.1.1 on Windows 7 to run unit tests for my angular 4 project with rx-sandbox 0.0.8 and I get the error: SyntaxError: Unexpected token 'const'. No error on Chrome.
Opt-in module for assert marble texts with values, for easier diff.
Love the marbles, but there is this tiny spelling/typo error in tokenParseReducer.ts line 89, that I get to see quite often (because I suck at writing tests):
const validateTimeFrameToken = (acc: TokenParseAccumulator) => {
if (acc.expandingTokenCount > 0 || acc.simultaneousGrouped) {
throw new Error('Incorret timeframe specified');
}
};
Should be:
const validateTimeFrameToken = (acc: TokenParseAccumulator) => {
if (acc.expandingTokenCount > 0 || acc.simultaneousGrouped) {
throw new Error('Incorrect timeframe specified');
}
};
1.0.1
to 1.1.0
.This version is covered by your current version range and after updating it in your project the build failed.
husky is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 9 commits.
d22b4f2
1.1.0
ec35c66
Update badges
ec415c6
Fix TypeScript errors
2242913
Add module/types
bec48eb
Update CHANGELOG.md
0eb1db3
Add comment
f09ce83
Create .git/hooks if doesn't exist (#368)
075c644
Update dependencies
92a93f3
Update README.md
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
8.0.2
to 8.0.3
.This version is covered by your current version range and after updating it in your project the build failed.
lint-staged is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 1 commits.
225a904
fix: Allow to use lint-staged on CI (#523)
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
23.3.2
to 23.3.3
.This version is covered by your current version range and after updating it in your project the build failed.
@types/jest is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
23.10.3
to 23.10.4
.This version is covered by your current version range and after updating it in your project the build failed.
ts-jest is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 22 commits.
ef89ee6
Merge pull request #795 from huafu/release/23.10.4
82a930b
chore(release): 23.10.4
69b80ad
Merge pull request #794 from huafu/fix-preset-typings
94dc4e7
fix(typings): wrong import in preset typings + test
53767ab
fix(typings): typo in presets definition file
90beca8
Merge pull request #787 from huafu/fix-testing-utils
89ad06a
style(cli): more readable code when setting defaults for init
b1eed98
docs(install): includes @types/jest in install script
b837acd
test(typings): repalce jest.SpyInstance with MockInstance
6cacbea
fix(cache): adds project's dep versions to cache key
7b2dd01
test(preset): fixes tests, doc and cli for presets
ec78757
docs(utils): updates docs related to moved helpers
8d5a60a
test(preset): updates tests related to presets
68abcfb
fix(cli): change options to better reflect the new presets
33ff29f
fix(helpers): deprecate import from ts-jest, now ts-jest/utils
There are 22 commits in total.
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Current error message:
Error:
"Source: -(bbb)|"
"Expected: (aaa)(bbb)|"
Expected error message:
Error:
"Source: - (bbb)|"
"Expected: (aaa)(bbb)|"
I think the same frame of 2 streams should be aligned.
23.1.4
to 23.10.0
.This version is covered by your current version range and after updating it in your project the build failed.
ts-jest is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
ts-jest
, reloaded!ts-jest
Slack community where you can find some instant helpjest
, typescript
and babel
versionsThe new version differs by 293 commits.
0e5ffed
chore(release): 23.10.0
3665609
Merge pull request #734 from huafu/appveyor-optimizations
45d44d1
Merge branch 'master' into appveyor-optimizations
76e2fe5
ci(appveyor): cache npm versions as well
191c464
ci(appveyor): try to improve appveyor's config
0f31b42
Merge pull request #733 from huafu/fix-test-snap
661853a
Merge branch 'master' into fix-test-snap
aa7458a
Merge pull request #731 from kulshekhar/dependabot/npm_and_yarn/tslint-plugin-prettier-2.0.0
70775f1
ci(lint): run lint scripts in series instead of parallel
a18e919
style(fix): exclude package.json from tslint rules
011b580
test(config): stop using snapshots for pkg versions
7e5a3a1
build(deps-dev): bump tslint-plugin-prettier from 1.3.0 to 2.0.0
fbe90a9
Merge pull request #730 from kulshekhar/dependabot/npm_and_yarn/@types/node-10.10.1
a88456e
build(deps-dev): bump @types/node from 10.9.4 to 10.10.1
54fd239
Merge pull request #729 from kulshekhar/dependabot/npm_and_yarn/prettier-1.14.3
There are 250 commits in total.
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Branch | Build failing 🚨 |
---|---|
Dependency | lint-staged |
Current Version | 4.1.3 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As lint-staged is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.
I recommend you give this issue a high priority. I’m sure you can resolve this 💪
The new version differs by 8 commits.
30fa594
feat: Print friendlier error if config is missing (#281)
0077644
chore: Cleanup package.json
(#250)
7abe23f
ci: Disable email notifications from Travis CI
c9d0849
docs: Use emojis in the Readme
e976a3c
docs: Add screenshot with the animated gif (#276)
92e586b
docs: Reformat code blocks
9b0282a
docs: Use diff formatting for code
33da9b3
ci: Whitelist build branches to avoid duplicate builds (#269)
See the full diff
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot 🌴
Since upgading to Angular 12 and Webpack 5, this package no longer works when running tests and errors with
Chrome 91.0.4472.114 (Linux x86_64) ERROR
An error was thrown in afterAll
Uncaught ReferenceError: Buffer is not defined
ReferenceError: Buffer is not defined
at Object.45513 (http://localhost:9876/_karma_webpack_/webpack:/node_modules/jest-matcher-utils/build/deepCyclicCopyReplaceable.js:18:1)
at __webpack_require__ (http://localhost:9876/_karma_webpack_/webpack:/webpack/bootstrap:19:1)
at Object.79283 (http://localhost:9876/_karma_webpack_/webpack:/node_modules/jest-matcher-utils/build/index.js:19:3)
at __webpack_require__ (http://localhost:9876/_karma_webpack_/webpack:/webpack/bootstrap:19:1)
at Object.53442 (http://localhost:9876/_karma_webpack_/webpack:/node_modules/rx-sandbox/dist/assert/marbleAssert.js:9:55)
at __webpack_require__ (http://localhost:9876/_karma_webpack_/webpack:/webpack/bootstrap:19:1)
at Object.89949 (http://localhost:9876/_karma_webpack_/webpack:/node_modules/rx-sandbox/dist/index.js:4:24)
at __webpack_require__ (http://localhost:9876/_karma_webpack_/webpack:/webpack/bootstrap:19:1)
at Module.534 (http://localhost:9876/_karma_webpack_/main.js:2450:68)
Could the jest-matcher-utils
package be upgraded to the latest version #663 as it might solve this issue
Hi!
The library looks pretty good already, there's only one thing that I'm missing from the RxJS4 testing API: manually advancing the TestScheduler. Right now, calling flush()
makes it run all the way through.
The point of that method (as far as I've seen it used, anyway) would be to verify the timing of arbitrary side effects, introduced via a do()
operator. If there are other / better alternatives for this, I'm also open to suggestions.
Hello there,
I'm not sure if this repository is being actively maintained, but we use rx-sandbox
in our repo to help test observables in RxJS.
It seems like after updating our RxJS version, our unit tests that were using rx-sandbox
stopped working with this message in all the import locations:
Cannot find module 'rxjs/internal/scheduler/AsyncAction' from '../../node_modules/rx-sandbox/dist/utils/coreInternalImport.js'
Require stack:
/Users/dsawali/Desktop/ecadlabs/taquito/node_modules/rx-sandbox/dist/utils/coreInternalImport.js
/Users/dsawali/Desktop/ecadlabs/taquito/node_modules/rx-sandbox/dist/assert/marbleAssert.js
/Users/dsawali/Desktop/ecadlabs/taquito/node_modules/rx-sandbox/dist/index.js
test/wallet/increase-paid-storage-operation.spec.ts
at Resolver.resolveModule (../../node_modules/jest-runtime/node_modules/jest-resolve/build/index.js:306:11)
at Object.<anonymous> (../../node_modules/rx-sandbox/src/utils/coreInternalImport.ts:7:1)
apologies in advance if this isn't a regression caused by rx-sandbox
.
Thanks
This project, or one of its dependencies, has an incorrect import path. This causes the test suite to crash whenever the rxSandbox.create() function is called.
The offending import is here: https://github.com/kwonoj/rx-sandbox/blob/master/src/assert/marbleAssert.ts
Create a new Angular project. Import rxSandbox and call the create() function.
ERROR in ./node_modules/jest-matchers/node_modules/pretty-format/build-es5/plugins/ReactElement.js
Module not found: Error: Can't resolve 'babel-runtime/helpers/typeof' in 'E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\build-es5\plugins'
resolve 'babel-runtime/helpers/typeof' in 'E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\build-es5\plugins'
Parsed request is a module
using description file: E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\package.json (relative path: ./build-es5/plugins)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
looking for modules in E:/test/dddd
using description file: E:\test\dddd\package.json (relative path: .)
Field 'browser' doesn't contain a valid alias configuration
using description file: E:\test\dddd\package.json (relative path: ./babel-runtime/helpers/typeof)
no extension
Field 'browser' doesn't contain a valid alias configuration
E:\test\dddd\babel-runtime\helpers\typeof doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
E:\test\dddd\babel-runtime\helpers\typeof.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration
E:\test\dddd\babel-runtime\helpers\typeof.tsx doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
E:\test\dddd\babel-runtime\helpers\typeof.mjs doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
E:\test\dddd\babel-runtime\helpers\typeof.js doesn't exist
as directory
E:\test\dddd\babel-runtime\helpers\typeof doesn't exist
E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\build-es5\plugins\node_modules doesn't exist or is not a directory
E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\build-es5\node_modules doesn't exist or is not a directory
E:\test\dddd\node_modules\jest-matchers\node_modules\node_modules doesn't exist or is not a directory
E:\test\dddd\node_modules\node_modules doesn't exist or is not a directory
E:\test\node_modules doesn't exist or is not a directory
E:\node_modules doesn't exist or is not a directory
looking for modules in E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\node_modules
using description file: E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
looking for modules in E:\test\dddd\node_modules\jest-matchers\node_modules
using description file: E:\test\dddd\node_modules\jest-matchers\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
looking for modules in E:\test\dddd\node_modules
using description file: E:\test\dddd\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
using description file: E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\package.json (relative path: ./node_modules/babel-runtime/helpers/typeof)
no extension
Field 'browser' doesn't contain a valid alias configuration
using description file: E:\test\dddd\node_modules\jest-matchers\package.json (relative path: ./node_modules/babel-runtime/helpers/typeof)
no extension
Field 'browser' doesn't contain a valid alias configuration
using description file: E:\test\dddd\package.json (relative path: ./node_modules/babel-runtime/helpers/typeof)
no extension
Field 'browser' doesn't contain a valid alias configuration
E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\node_modules\babel-runtime\helpers\typeof doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
E:\test\dddd\node_modules\jest-matchers\node_modules\babel-runtime\helpers\typeof doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
E:\test\dddd\node_modules\babel-runtime\helpers\typeof doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\node_modules\babel-runtime\helpers\typeof.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration
E:\test\dddd\node_modules\jest-matchers\node_modules\babel-runtime\helpers\typeof.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration
E:\test\dddd\node_modules\babel-runtime\helpers\typeof.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration
E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\node_modules\babel-runtime\helpers\typeof.tsx doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
E:\test\dddd\node_modules\jest-matchers\node_modules\babel-runtime\helpers\typeof.tsx doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
E:\test\dddd\node_modules\babel-runtime\helpers\typeof.tsx doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\node_modules\babel-runtime\helpers\typeof.mjs doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
E:\test\dddd\node_modules\jest-matchers\node_modules\babel-runtime\helpers\typeof.mjs doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
E:\test\dddd\node_modules\babel-runtime\helpers\typeof.mjs doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\node_modules\babel-runtime\helpers\typeof.js doesn't exist
as directory
E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\node_modules\babel-runtime\helpers\typeof doesn't exist
E:\test\dddd\node_modules\jest-matchers\node_modules\babel-runtime\helpers\typeof.js doesn't exist
as directory
E:\test\dddd\node_modules\jest-matchers\node_modules\babel-runtime\helpers\typeof doesn't exist
E:\test\dddd\node_modules\babel-runtime\helpers\typeof.js doesn't exist
as directory
E:\test\dddd\node_modules\babel-runtime\helpers\typeof doesn't exist
[E:\test\dddd\babel-runtime\helpers\typeof]
[E:\test\dddd\babel-runtime\helpers\typeof.ts]
[E:\test\dddd\babel-runtime\helpers\typeof.tsx]
[E:\test\dddd\babel-runtime\helpers\typeof.mjs]
[E:\test\dddd\babel-runtime\helpers\typeof.js]
[E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\build-es5\plugins\node_modules]
[E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\build-es5\node_modules]
[E:\test\dddd\node_modules\jest-matchers\node_modules\node_modules]
[E:\test\dddd\node_modules\node_modules]
[E:\test\node_modules]
[E:\node_modules]
[E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\node_modules\babel-runtime\helpers\typeof]
[E:\test\dddd\node_modules\jest-matchers\node_modules\babel-runtime\helpers\typeof]
[E:\test\dddd\node_modules\babel-runtime\helpers\typeof]
[E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\node_modules\babel-runtime\helpers\typeof.ts]
[E:\test\dddd\node_modules\jest-matchers\node_modules\babel-runtime\helpers\typeof.ts]
[E:\test\dddd\node_modules\babel-runtime\helpers\typeof.ts]
[E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\node_modules\babel-runtime\helpers\typeof.tsx]
[E:\test\dddd\node_modules\jest-matchers\node_modules\babel-runtime\helpers\typeof.tsx]
[E:\test\dddd\node_modules\babel-runtime\helpers\typeof.tsx]
[E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\node_modules\babel-runtime\helpers\typeof.mjs]
[E:\test\dddd\node_modules\jest-matchers\node_modules\babel-runtime\helpers\typeof.mjs]
[E:\test\dddd\node_modules\babel-runtime\helpers\typeof.mjs]
[E:\test\dddd\node_modules\jest-matchers\node_modules\pretty-format\node_modules\babel-runtime\helpers\typeof.js]
[E:\test\dddd\node_modules\jest-matchers\node_modules\babel-runtime\helpers\typeof.js]
[E:\test\dddd\node_modules\babel-runtime\helpers\typeof.js]
@ ./node_modules/jest-matchers/node_modules/pretty-format/build-es5/plugins/ReactElement.js 1:128-167
@ ./node_modules/jest-matchers/node_modules/pretty-format/build-es5/index.js
@ ./node_modules/jest-matchers/node_modules/jest-matcher-utils/build-es5/index.js
@ ./node_modules/jest-matchers/build/matchers.js
@ ./node_modules/rx-sandbox/dist/src/assert/marbleAssert.js
@ ./node_modules/rx-sandbox/dist/src/index.js
@ ./src/app/app.component.spec.ts
@ ./src sync \.spec\.ts$
@ ./src/test.ts
1.0.1
to 1.0.2
.This version is covered by your current version range and after updating it in your project the build failed.
jest-spin-reporter is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 8 commits.
258743e
Merge pull request #4 from kwonoj/fix-output
c9e10b7
build(release): release 1.0.2
37f2222
build(package): bump up version
21085eb
fix(reporter): update output
0a17d85
build(webpack): update configuration
fc0624a
build(package): update dependencies
e09bfc9
Merge pull request #3 from kwonoj/bump-dep
8818b8c
build(package): bump up dependencies
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Hi there,
was trying to setup a first simple test case with rx-sandbox, but wasn't successful so far:
it('rx: should notify on loading events with debouncing', (fakeAsync(() => {
// GIVEN
const { cold, getMessages, e } = rxSandbox.create(true)
const mappings = { t: true, f: false }
const triggerEvents$ = cold('t...75...f-t-120-f', mappings)
const expected = e('...50...t...50...f...170...f', mappings)
// WHEN
const messages = getMessages(underTest.isLoading$)
triggerEvents$.subscribe(loadingState => underTest.setLoadingState(loadingState))
// THEN
tick(300) // <-- appearently needed for any events to be received
marbleAssert(messages).to.equal(expected)
})))
underTest.isLoading$'
is defined as follows:
(...).pipe(
distinctUntilChanged(),
debounceTime(50),
)
So basically it should just debounce booleans 50 ms if different than the last value.
But when I run the test, I got a very strange result:
Error:
"Source: ä-----"
"Expected: -...48...-ä-...177...-ḅ-----"
Maybe my test is just wrong but I don't see why Source
hasn't the value defined by me and has (as well as Expected
) strange characters like ' ä' and 'ḅ' in it.
I am using Jest 28 and rx-sandbox 2.0.4.
Thank you!
1.14.2
to 1.14.3
.This version is covered by your current version range and after updating it in your project the build failed.
prettier is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
1.1.0
to 1.1.1
.This version is covered by your current version range and after updating it in your project the build failed.
husky is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 8 commits.
09bbaa3
1.1.1
86379ab
Update CHANGELOG.md
f588dac
Update CHANGELOG.md
dd57ab7
Check Node version before running hook
821d88d
Update CHANGELOG.md
c6b9925
Merge branch 'master' of https://github.com/typicode/husky
1406071
Check HUSKY_SKIP_INSTALL value before other checks
cb9a517
Update BACKERS.md
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
I am trying to write an example marble test with rx-sandbox and jest and failing.
See repro -> https://github.com/hally9k/rx-sandbox-jest-example
The observable under test doesn't emit any output. I think the problem is that the test scheduler isn't applied to the delay operator but I can't seem to find how to do that from the readme here. Does rx-sandbox not patch the test scheduler into the operators automagically?
Hi,
rx-sandbox 1.0 just supports RxJS 6, but the readme still states that this library supports RxJS 5. This is a little confusing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.