Giter Club home page Giter Club logo

providence-server's Introduction

๐Ÿ‘‹ Hi ! I'm Guillaume Lamanda, code lover at Zenika (Brest) ๐Ÿง‘โ€๐Ÿ’ป

๐Ÿ“Œ Pinned Repositories

Favorite technologies

  • Javascript / Typescript
  • GraphQL
  • Rust

providence-server's People

Contributors

glennguegan avatar guillaumelamanda avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

providence-server's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • fix(deps): replace dependency faker with @faker-js/faker
  • chore(deps): update node.js to v14.21.3
  • fix(deps): update dependency node-fetch to v3.3.2
  • chore(deps): update actions/checkout action to v4
  • chore(deps): update actions/setup-node action to v4
  • chore(deps): update dependency conventional-changelog-cli to v5
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency eslint-plugin-jest to v28
  • chore(deps): update dependency husky to v9
  • chore(deps): update dependency lint-staged to v15
  • chore(deps): update dependency prettier to v3
  • chore(deps): update dependency supertest to v7
  • chore(deps): update js-devtools/npm-publish action to v3
  • chore(deps): update node.js to v20
  • fix(deps): update dependency commander to v12
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/lint.yaml
  • actions/checkout v2
  • actions/setup-node v2
.github/workflows/publish.yaml
  • actions/checkout v2
  • actions/setup-node v2
  • JS-DevTools/npm-publish v1
.github/workflows/tests.yaml
  • actions/checkout v2
  • actions/setup-node v2
npm
package.json
  • commander 8.3.0
  • express 4.18.1
  • faker 5.5.3
  • lodash.omit 4.5.0
  • morgan 1.10.0
  • node-fetch 3.2.4
  • @babel/eslint-parser 7.17.0
  • @commitlint/cli 16.2.4
  • @commitlint/config-conventional 16.2.4
  • @types/jest 27.5.2
  • conventional-changelog-cli 2.2.2
  • eslint 8.15.0
  • eslint-plugin-jest 25.7.0
  • husky 7.0.4
  • jest 27.5.1
  • lint-staged 12.4.1
  • prettier 2.6.2
  • supertest 6.2.3
  • node 14.19.2

  • Check this box to trigger a request for Renovate to run again on this repository

Test `replay` command

Providence lets you replay a saved dataset. However, this command is not tested yet.

There are two possibilities of replay available :

  1. Replay the current dataset,
  2. Replay a saved dataset.

A test example can be found in test folder for the default command.

To be able to do this, the test suite needs to :

  1. Record a request,
  2. (if we test a saved dataset) save the dataset,
  3. Launch providence server in replay mode.

Then, we can start testing the functionality.

We can also test what happens when we replay a non-existing folder. We expect the program to exit.

`providence replay` and `providence save` raise an exception

When I run the providence replay command without specific folder or the providence save command, I get the error below:

internal/process/esm_loader.js:74
    internalBinding('errors').triggerUncaughtException(
                              ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at validateString (internal/validators.js:124:11)
    at join (path.js:1148:7)
    at getReplayFolder (file:///home/julien/.npm-global/lib/node_modules/providence-server/src/server.js:31:12)
    at start (file:///home/julien/.npm-global/lib/node_modules/providence-server/src/server.js:33:28)
    at Command.<anonymous> (file:///home/julien/.npm-global/lib/node_modules/providence-server/src/cli.js:59:5)
    at Command.listener [as _actionHandler] (/home/julien/.npm-global/lib/node_modules/providence-server/node_modules/commander/lib/command.js:488:17)
    at /home/julien/.npm-global/lib/node_modules/providence-server/node_modules/commander/lib/command.js:1207:65
    at Command._chainOrCall (/home/julien/.npm-global/lib/node_modules/providence-server/node_modules/commander/lib/command.js:1124:12)
    at Command._parseCommand (/home/julien/.npm-global/lib/node_modules/providence-server/node_modules/commander/lib/command.js:1207:27)
    at Command._dispatchSubcommand (/home/julien/.npm-global/lib/node_modules/providence-server/node_modules/commander/lib/command.js:1031:25) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Nevertheless, data is present in ~/.npm-global/lib/node_modules/providence-server/data/current/ folder

Test `list` command

Providence lets you list your saved datasets. However, this command is not tested yet.

A test example can be found in test folder for the default command.

To be able to do this, the test suite needs to :

  1. Record a request,
  2. Save the dataset,

Then, we can start testing the functionality.

Many tests can be found in the repository, and this one should be easy to test. ๐Ÿ‘

Test `save` command

Providence lets you save the current dataset into another name.
By doing that, you can replay different datasets.
However, this command is not tested yet.

A test example can be found in test folder for the default command.

To be able to do this, the test suite needs to :

  1. Record a request,

Then, we can start testing the functionality.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.