Updated: Apr 9, 2020
Welcome to v7.15.0, the 20G release of Bixby Developer Studio. This release contains an enhancement and a few bug fixes.
We've added a date and time setter to the Story Editor, which matches what is already available in the Simulator. The new setter can be found in the User Profile dialog and within the step editor sidebar where you add specific overrides to a single step in a story. Click on the button that shows the date and time to update the date and time.
In an upcoming release, we will upgrade the version of Jest we use in Story assertions, from version 24.9.0 to 25.2.4. There's a breaking change in the Jest framework for this upgrade that might affect stories you have written with Bixby Studio. The Jest framework describes it as:
[BREAKING] Consider primitives different from wrappers instantiated with new
This won't affect all story assertions, just those that depend upon primitive values that Bixby Studio wraps for you.
Check to see if you refer to wrapped primitive properties of the step.currentNode
object.
If you use the toEqual
function to make comparisons, those tests will begin to fail
when we upgrade to Jest version 25.2.4.
To prepare your assertions, and make it possible for them to continue working through the upgrade, add a call to the
valueOf
function to get a true primitive value before making comparisons with toEqual
.
Here is an example. The following code is within a story assertion:
const { results } = step.currentNode
const firstCountryCode = results[0] // results array elements are wrapped String primitives, created internally by Bixby Studio
const expectedCountryCode = 'US'
expect(firstCountryCode).toEqual(expectedCountryCode);
Change the assertion to this:
const { results } = step.currentNode
const firstCountryCode = results[0] // results array elements are wrapped String primitives, created internally by Bixby Studio
const expectedCountryCode = 'US'
expect(firstCountryCode.valueOf()).toEqual(expectedCountryCode); // added a call to valueOf, to unwrap that primitive before comparison