aws-samples / aws-tools-for-babylonjs-editor

AWS Tools for Babylon.JS Editor is a suite of tools meant to interact with Babylon.JS Editor by utilizing the capabilities of AWS products.
Apache License 2.0
32 stars 10 forks source link

Unit testing the Workspace file with Jest Mock #11

Closed eherozhao closed 2 years ago

eherozhao commented 2 years ago

Description

Added the test for the workspace file which contains the utility methods. Meanwhile, updated the exec to execFile to improve security since execFile takes string[] do not spawn a shell and execute the command directly.

Reviewer Testing Instructions


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.