Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/cli/src/commands/socket-submit.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import format from 'chalk'
import logger from '../utils/debug'
import { CompatibilityError } from '../utils/errors'
import { error, echo, echon } from '../utils/print-tools'

const { debug } = logger('cmd-submit')

export default class SocketSubmitCmd {
constructor (context) {
this.session = context.session
Expand Down Expand Up @@ -45,6 +48,8 @@ export default class SocketSubmitCmd {
echo(`Type ${publishCommand} to make it available for everyone!`)
echo()
} catch (err) {
debug(err)
debug(err.response.data)
if (err instanceof CompatibilityError) {
error(4)(err.message)
echo()
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/tests/e2e/registry.test-e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('[E2E] CLI Registry', function () {
.end(done)
})

it('can create new socket', function (done) {
it.only('can create new socket', function (done) {
testNixt()
.run(`${cliLocation} create ${createdSocketName}`)
.on(/Choose template for your Socket/)
Expand All @@ -42,7 +42,7 @@ describe('[E2E] CLI Registry', function () {
.end(done)
})

it('can submit created socket to the registry', function (done) {
it.only('can submit created socket to the registry', function (done) {
testNixt()
.run(`${cliLocation} submit ${createdSocketName}`)
.stdout(/to make it available for everyone/)
Expand Down
Loading