pulsar-edit / ppm

Pulsar Package Manager
MIT License
35 stars 14 forks source link

Decaffeinate `spec/list-spec` (+ all last files) 🎉 #35

Closed GuilleW closed 1 year ago

GuilleW commented 1 year ago

Since I work on many files, I edit package.json to add useful shortcut to avoid misspelt filename.

    "test-decaff": "npx coffee --compile --output spec spec/${npm_config_name}.coffee",
    "test-coffee": "jasmine-focused --captureExceptions --coffee spec/${npm_config_name}.coffee",
    "test-js": "jasmine-focused --captureExceptions spec/${npm_config_name}.js"

Steps to reproduce decaffeination (guidelines):

Test from coffee and JS should output same successful result :

From coffee

$ jasmine-focused --captureExceptions --coffee spec/list-spec.coffee
// or my shortcut $ `./bin/npm run test-coffee --name=list-spec`
> 8 tests, 24 assertions, 0 failures, 0 skipped

to js

$ jasmine-focused --captureExceptions spec/list-spec.js
// or my shortcut $ `./bin/npm run test-js --name=list-spec`
> 8 tests, 24 assertions, 0 failures, 0 skipped
confused-Techie commented 1 year ago

Superseded by #78 having your commits brought in on newer changes.

As always appreciate all your effort here, thanks a ton!