diff --git a/.gitignore b/.gitignore index 47905684..2f0c91f2 100644 --- a/.gitignore +++ b/.gitignore @@ -24,5 +24,4 @@ dist-ssr *.sw? package-lock.json yarn.lock -results.xml .jest-stare \ No newline at end of file diff --git a/report.json b/report.json deleted file mode 100644 index a52383fe..00000000 --- a/report.json +++ /dev/null @@ -1 +0,0 @@ -{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":3,"numPassedTests":21,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":3,"numTotalTests":21,"openHandles":[],"snapshot":{"added":0,"didUpdate":false,"failure":false,"filesAdded":0,"filesRemoved":0,"filesRemovedList":[],"filesUnmatched":0,"filesUpdated":0,"matched":0,"total":0,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":0,"updated":0},"startTime":1700710936337,"success":true,"testResults":[{"assertionResults":[{"ancestorTitles":["camelize"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"camelize should correctly camelize testString","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should correctly camelize testString"},{"ancestorTitles":["camelize"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"camelize should correctly camelize TestString","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should correctly camelize TestString"},{"ancestorTitles":["camelize"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"camelize should correctly camelize testString","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should correctly camelize testString"},{"ancestorTitles":["camelize"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"camelize should correctly camelize TestString","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should correctly camelize TestString"}],"endTime":1700710936966,"message":"","name":"/Users/oluqman/Desktop/dev/stimulus-store/test/camelize.test.ts","startTime":1700710936363,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["useStore"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"useStore should subscribe to stores and call update methods on value changes","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should subscribe to stores and call update methods on value changes"},{"ancestorTitles":["useStore"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"useStore should allow direct access to store values on the controller","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should allow direct access to store values on the controller"},{"ancestorTitles":["useStore"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"useStore should allow direct access to store instances on the controller","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should allow direct access to store instances on the controller"},{"ancestorTitles":["useStore"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"useStore should clean up subscriptions when controller disconnects","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should clean up subscriptions when controller disconnects"},{"ancestorTitles":["useStore"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"useStore should add a getter for the store value to the controller","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should add a getter for the store value to the controller"},{"ancestorTitles":["useStore"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"useStore should add a getter for the store instance to the controller","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should add a getter for the store instance to the controller"},{"ancestorTitles":["useStore"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"useStore should add an update method to the controller","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should add an update method to the controller"},{"ancestorTitles":["useStore"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"useStore should notify each controller when the shared store's value is updated by any controller","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"should notify each controller when the shared store's value is updated by any controller"},{"ancestorTitles":["useStore"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"useStore should call the callback with the current value when a function is passed to set","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should call the callback with the current value when a function is passed to set"},{"ancestorTitles":["useStore"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"useStore should update the store's value with the return value of the callback","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should update the store's value with the return value of the callback"}],"endTime":1700710937008,"message":"","name":"/Users/oluqman/Desktop/dev/stimulus-store/test/useStore.test.ts","startTime":1700710936969,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Store"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"Store should initialize with the correct value","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should initialize with the correct value"},{"ancestorTitles":["Store"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"Store should update the value correctly","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should update the value correctly"},{"ancestorTitles":["Store"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"Store should notify subscribers when value changes","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should notify subscribers when value changes"},{"ancestorTitles":["Store"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"Store should stop notifying unsubscribed callbacks","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should stop notifying unsubscribed callbacks"},{"ancestorTitles":["Store"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"Store should not notify subscribers when value is the same","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should not notify subscribers when value is the same"},{"ancestorTitles":["Store"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"Store should not notify subscribers when filter returns false","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should not notify subscribers when filter returns false"},{"ancestorTitles":["Store"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"Store should call the callback with the current value when a function is passed to set","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should call the callback with the current value when a function is passed to set"}],"endTime":1700710937052,"message":"","name":"/Users/oluqman/Desktop/dev/stimulus-store/test/store.test.ts","startTime":1700710937015,"status":"passed","summary":""}],"wasInterrupted":false} diff --git a/test-results/jest/results.xml b/test-results/jest/results.xml new file mode 100644 index 00000000..938a4868 --- /dev/null +++ b/test-results/jest/results.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file