nodejs-itoolkit
nodejs-itoolkit copied to clipboard
A JavaScript (Node.js) library for communicating with IBM i
We can skip tests programatically with:  https://mochajs.org/#inclusive-tests With this we can move tests from `tests/functional/deprecated` folder into their respective test file in `test/functional`. Just need to add a describe...
We should set timeout values for each test to take in to account how long it should run, since the tests vary widely. https://mochajs.org/#test-level
The default "slow" time for tests is 75ms. Any test taking longer than that will be marked slow. Our functional toolkit tests take 1000-4000s, however, so they are all marked...
The following Mocha eslint rules are broken by our existing tests: - [x] mocha/no-mocha-arrows (#283) - [ ] mocha/no-skipped-tests - [x] mocha/no-hooks-for-single-case - [x] mocha/no-identical-title These are disabled for now.
That way we would not have to import `IN, CLOB, CHAR` fields that are used to specify the stored procedure parameters. https://github.com/IBM/nodejs-idb-connector/blob/master/docs/README.md#async-prepare-bind-execute
**Is your feature request related to a problem? Please describe.** Performance is not ideal with the current Connection behavior. **Describe the solution you'd like** Currently, Connection objects connect/disconnect on each...
Resolves #289 Needed away to to check if `ZZSRV6` XMLSERVICE test service program was available before running the `*.addReturn` test cases. If its unavailable the test case will be skipped....
Mute deprecation warnings by capturing the deprecation event emitted by the process with: [process.on('deprecation', fn)](https://www.npmjs.com/package/depd#processondeprecation-fn) Within the test cases we ensure that the deprecated functions emit a deprecation warning. Resolves...
Calculated the expected test duration by running each test case 5 times and computing the average run time. ## Functional Tests Ran using ssh transport to connect from local machine...
It should work something like this: ```js let dq = new DataQueue(transport, "MYLIB", "MYQUEUE"); await dq.send("This is a string"); await dq.sendAsEbcdic(*This is converted to UTF-8 bytes"); let s1 = await...