Socket
Socket
Sign inDemoInstall

@zondax/zemu

Package Overview
Dependencies
Maintainers
3
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zondax/zemu - npm Package Compare versions

Comparing version 0.34.0-beta.2 to 0.34.0-beta.3

6

dist/emulator.js

@@ -81,4 +81,6 @@ "use strict";

throw listError;
if (!(containers === null || containers === void 0 ? void 0 : containers.length))
throw 'Container not found, cannot be removed';
if (!(containers === null || containers === void 0 ? void 0 : containers.length)) {
console.log('No containers found');
return;
}
containers.forEach(function (containerInfo) {

@@ -85,0 +87,0 @@ docker.getContainer(containerInfo.Id).remove({ force: true }, function (removeError) {

@@ -5,3 +5,3 @@ {

"license": "Apache-2.0",
"version": "0.34.0-beta.2",
"version": "0.34.0-beta.3",
"description": "Zemu Testing Framework",

@@ -25,3 +25,3 @@ "main": "./dist/index.js",

"copy-files": "copyfiles -u 0 src/**/*.proto dist/",
"test": "yarn build && jest --runInBand",
"test": "yarn build && jest",
"linter": "eslint --ext .ts,.tsx,.js,.jsx --ignore-path .eslintignore . --max-warnings 0",

@@ -28,0 +28,0 @@ "linter:fix": "yarn linter --fix",

@@ -45,3 +45,6 @@ /** ******************************************************************************

if (listError) throw listError
if (!containers?.length) throw 'Container not found, cannot be removed'
if (!containers?.length) {
console.log('No containers found')
return
}
containers.forEach(containerInfo => {

@@ -48,0 +51,0 @@ docker.getContainer(containerInfo.Id).remove({ force: true }, removeError => {

@@ -36,3 +36,2 @@ // noinspection SpellCheckingInspection

...DEFAULT_START_OPTIONS,
X11: false,
logging: true,

@@ -42,3 +41,3 @@ custom: `-s "${APP_SEED}" `,

test('File-Missing', () => {
test.concurrent('File-Missing', () => {
expect(() => {

@@ -49,3 +48,3 @@ new Zemu('it_does_not_exist')

test('Start&Close-NanoS', async () => {
test.concurrent('Start&Close-NanoS', async () => {
const sim = new Zemu(DEMO_APP_PATH_S)

@@ -60,3 +59,3 @@ expect(sim).not.toBeNull()

test('Basic Control - S', async () => {
test.concurrent('Basic Control - S', async () => {
const sim = new Zemu(DEMO_APP_PATH_S)

@@ -83,3 +82,3 @@ try {

test('Load/Compare Snapshots', async () => {
test.concurrent('Load/Compare Snapshots', async () => {
const image1A = Zemu.LoadPng2RGB('tests/snapshots/image1A.png')

@@ -93,3 +92,3 @@ const image1B = Zemu.LoadPng2RGB('tests/snapshots/image1B.png')

test('Wait for change / timeout', async () => {
test.concurrent('Wait for change / timeout', async () => {
const sim = new Zemu(DEMO_APP_PATH_S)

@@ -105,3 +104,3 @@ try {

test('Snapshot and compare', async () => {
test.concurrent('Snapshot and compare', async () => {
const sim = new Zemu(DEMO_APP_PATH_S)

@@ -116,3 +115,3 @@ try {

test('Snapshot and compare 2', async () => {
test.concurrent('Snapshot and compare 2', async () => {
const sim = new Zemu(DEMO_APP_PATH_S)

@@ -129,3 +128,3 @@ try {

// eslint-disable-next-line jest/expect-expect
test('GRPC Server start-stop', async () => {
test.concurrent('GRPC Server start-stop', async () => {
const sim = new Zemu(DEMO_APP_PATH_S)

@@ -138,3 +137,3 @@ await sim.start(ZEMU_OPTIONS_S)

test('Get app info', async () => {
test.concurrent('Get app info', async () => {
const sim = new Zemu(DEMO_APP_PATH_S)

@@ -153,3 +152,3 @@ expect(sim).not.toBeNull()

test('sign real app', async function () {
test.concurrent('sign real app', async function () {
const sim = new Zemu(DEMO_APP2_PATH_S)

@@ -156,0 +155,0 @@ try {

@@ -33,3 +33,2 @@ // noinspection SpellCheckingInspection

...DEFAULT_START_OPTIONS,
X11: false,
logging: true,

@@ -40,3 +39,3 @@ custom: `-s "${APP_SEED}" `,

test('File-Missing', () => {
test.concurrent('File-Missing', () => {
expect(() => {

@@ -47,3 +46,3 @@ new Zemu('it_does_not_exist')

test('Start&Close-NanoX', async () => {
test.concurrent('Start&Close-NanoX', async () => {
const sim = new Zemu(DEMO_APP_PATH_X)

@@ -58,3 +57,3 @@ expect(sim).not.toBeNull()

test('Basic Control - X', async () => {
test.concurrent('Basic Control - X', async () => {
const sim = new Zemu(DEMO_APP_PATH_X)

@@ -81,3 +80,3 @@ try {

test('Load/Compare Snapshots', async () => {
test.concurrent('Load/Compare Snapshots', async () => {
const image1A = Zemu.LoadPng2RGB('tests/snapshots/image1A.png')

@@ -91,3 +90,3 @@ const image1B = Zemu.LoadPng2RGB('tests/snapshots/image1B.png')

test('Wait for change / timeout', async () => {
test.concurrent('Wait for change / timeout', async () => {
const sim = new Zemu(DEMO_APP_PATH_X)

@@ -94,0 +93,0 @@ try {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc