@topo-js/medusa-plugin-redsys 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -2
package/README.md CHANGED
@@ -163,10 +163,10 @@ npm run build # medusa plugin:build, into .medusa/server
163
163
  npm run lint
164
164
  npm run typecheck
165
165
  npm run test:unit # the provider: form signing, notification checks
166
- npm run test:integration:http # needs Postgres and a build: cart → Redsys session → notification → order
166
+ npm run test:integration:http # CI; locally needs a Postgres and a build: cart → Redsys session → notification → order
167
167
  ```
168
168
 
169
- The HTTP integration tests boot a bare Medusa app (`integration-tests/app/medusa-config.ts`) that loads the plugin and the provider from the build with Redsys' public test key, so run `npm run build` first. They create their own database with `DB_HOST`, `DB_PORT`, `DB_USERNAME` and `DB_PASSWORD` (default `postgres` on `localhost:5432`).
169
+ The HTTP integration tests boot a bare Medusa app (`integration-tests/app/medusa-config.ts`) that loads the plugin and the provider from the build with Redsys' public test key, so run `npm run build` first. They need a Postgres, so they run in CI (the Tests workflow, with a Postgres service) on every push and pull request; locally, run lint, typecheck and the unit tests. To run them locally anyway, point `DB_HOST`, `DB_PORT`, `DB_USERNAME` and `DB_PASSWORD` at a Postgres; each run creates and drops its own database.
170
170
 
171
171
  To try it in a Medusa app while developing, run `npx medusa plugin:publish` here and `npx medusa plugin:add @topo-js/medusa-plugin-redsys` in the app, then `npm run dev` here to rebuild on change.
172
172
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topo-js/medusa-plugin-redsys",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Redsys payment provider for Medusa 2: redirect payments (card, Bizum...) through the Redsys payment page.",
5
5
  "license": "MIT",
6
6
  "author": "TOPO",
@@ -46,7 +46,6 @@
46
46
  "lint:fix": "eslint . --fix",
47
47
  "typecheck": "tsc --noEmit",
48
48
  "test:unit": "TEST_TYPE=unit NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit --passWithNoTests",
49
- "test:integration:modules": "TEST_TYPE=integration:modules NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit --passWithNoTests",
50
49
  "test:integration:http": "TEST_TYPE=integration:http NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit"
51
50
  },
52
51
  "devDependencies": {