Bixby Developer Center

Guides
References

Version 8.0.1

Updated: May 15, 2020

Welcome to v8.0.1, the 20I release of Bixby Developer Studio. This patch release fixes several bugs from the 8.0.0 release, and includes an upgrade to the version of Jest we use in Story assertions.

Breaking Change for Some Story Assertions

We have upgraded 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 doesn'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 fail in this upgrade to Jest version 25.2.4.

To continue making your assertions work through this 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 to ensure that it works with the updated version:

  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

Bug Fixes

  • [VIDE-4926] Fixed training V2 not working properly when opening from the legacy training banner
  • [VIDE-4872] Handle a case when the Simulator receives an empty dialog message
  • [VIDE-4876] Fixed Aligned NL syntax highlighting in the Simulator
  • [VIDE-4883] Prevent capsule submission if files in the capsule contain unknown unicode characters