You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my bright script project, following the steps as mention in document , created one test file name Simple.brs
`@suite("basic tests")
function TestSuit__Simple()
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @Describe("tests the node context is available for a Node scope function")
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
end function @it("does something in node scope")
function TestCase__Simple()
m.assertNotInvalid(m.node)
m.assertInvalid(m._isNodeScopeVarSet)
m.assertTrue(m.node._isNodeScopeVarSet)
end function`
In my bright script project, following the steps as mention in document , created one test file name Simple.brs
`@suite("basic tests")
function TestSuit__Simple()
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@Describe("tests the node context is available for a Node scope function")
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
end function
@it("does something in node scope")
function TestCase__Simple()
m.assertNotInvalid(m.node)
m.assertInvalid(m._isNodeScopeVarSet)
m.assertTrue(m.node._isNodeScopeVarSet)
end function`
I tried to run command npm run build-tests
[02:12:42:7460 PM] Using config file: "/Users/Desktop/PROJECTS/bsconfig.json"
[02:12:42:7560 PM] Loading 1 plugins for cwd "/Users/Desktop/PROJECTS"
[02:12:42:8720 PM] Parsing files
[02:12:43:0540 PM] Parsing files finished. (181.959ms)
[02:12:43:0550 PM] Validating project
[02:12:43:1530 PM] Validating project finished. (97.687ms)
[02:12:43:1640 PM] Copying to staging directory
[02:12:43:2040 PM] Copying to staging directory finished. (39.625ms)
[02:12:43:2040 PM] Transpiling
[02:12:43:4690 PM] Transpiling finished. (264.397ms)
Now anyone has any idea how to run test files?
The text was updated successfully, but these errors were encountered: