From a7071f61f54871af794267200b638f83d8e4b382 Mon Sep 17 00:00:00 2001
From: bateman001 <49342979+bateman001@users.noreply.github.com>
Date: Fri, 6 Dec 2024 12:51:11 -0500
Subject: [PATCH] fixed tests
---
.circleci/config.yml | 12 +--
.npmignore | 32 ++++++-
junit.xml | 89 +++++++++++++++++++
package-lock.json | 6 +-
.../FullStoryProvider.test.tsx | 56 ++++++------
5 files changed, 155 insertions(+), 40 deletions(-)
create mode 100644 junit.xml
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 2b0f85c..b4c88c3 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,11 +1,11 @@
version: 2.1
orbs:
- node: circleci/node@6.3
+ node: circleci/node@6.3
workflows:
- commit:
- jobs:
- - node/test:
- version: '20.18.1'
- test-results-for: jest
\ No newline at end of file
+ commit:
+ jobs:
+ - node/test:
+ version: "20.18.1"
+ test-results-for: jest
diff --git a/.npmignore b/.npmignore
index d32ee33..6675aaf 100644
--- a/.npmignore
+++ b/.npmignore
@@ -2,13 +2,39 @@
/dist
/node_modules
-.gitignore
+
.prettierrc
.prettierrc.js
.prettierrc.json
babel.config.cjs
jest.config.cjs
-package.lock.json
README.md
tsconfig.json
-rollup.config.json
\ No newline at end of file
+rollup.config.json
+.circleci
+
+*.log
+npm-debug.log*
+
+# Coverage directory used by tools like istanbul
+coverage
+.nyc_output
+
+# Dependency directories
+node_modules
+
+# npm package lock
+package-lock.json
+yarn.lock
+
+# project files
+src
+test
+examples
+CHANGELOG.md
+.travis.yml
+.editorconfig
+.eslintignore
+.eslintrc
+.babelrc
+.gitignore
\ No newline at end of file
diff --git a/junit.xml b/junit.xml
new file mode 100644
index 0000000..4843ed3
--- /dev/null
+++ b/junit.xml
@@ -0,0 +1,89 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index f1fb133..d73f555 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,13 +1,13 @@
{
- "name": "fullstory-react-library",
+ "name": "@fullstory/react-library",
"version": "0.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
- "name": "fullstory-react-library",
+ "name": "@fullstory/react-library",
"version": "0.1.0",
- "license": "ISC",
+ "license": "MIT",
"dependencies": {
"@fullstory/browser": "^2.0.5"
},
diff --git a/src/components/FullStoryProvider/FullStoryProvider.test.tsx b/src/components/FullStoryProvider/FullStoryProvider.test.tsx
index 785b7de..b502b1b 100644
--- a/src/components/FullStoryProvider/FullStoryProvider.test.tsx
+++ b/src/components/FullStoryProvider/FullStoryProvider.test.tsx
@@ -72,7 +72,7 @@ describe("FullStoryProvider: useFSNavigate", () => {
// setup
render(
-
+
} />
} />
@@ -157,7 +157,7 @@ describe("FullStoryProvider: Url Configure", () => {
window.location = new URL("http://example.com/test-path");
render(
-
+
} />
@@ -176,7 +176,7 @@ describe("FullStoryProvider: Url Configure", () => {
render(
-
+
} />
@@ -194,7 +194,7 @@ describe("FullStoryProvider: Url Configure", () => {
render(
-
+
} />
@@ -219,7 +219,7 @@ describe("FullStoryProvider: Url Configure", () => {
// Render the provider
render(
-
+
} />
} />
@@ -243,7 +243,7 @@ describe("FullStoryProvider: Url Configure", () => {
render(
-
+
} />
@@ -271,7 +271,7 @@ describe("FullStoryProvider: Url Configure", () => {
render(
-
+
} />
@@ -289,7 +289,7 @@ describe("FullStoryProvider: Url Configure", () => {
render(
-
+
} />
@@ -317,7 +317,7 @@ describe("FullStoryProvider: Url Configure", () => {
render(
-
+
} />
@@ -333,7 +333,7 @@ describe("FullStoryProvider: Url Configure", () => {
it("setProperties sets with no search items", () => {
render(
-
+
} />
@@ -357,7 +357,7 @@ describe("FullStoryProvider: Url Configure", () => {
render(
-
+
} />
@@ -418,7 +418,7 @@ describe("FullStoryProvider: Schema Configure", () => {
render(
-
+
} />
@@ -438,7 +438,7 @@ describe("FullStoryProvider: Schema Configure", () => {
render(
-
+
} />
@@ -489,7 +489,7 @@ describe("FullStoryProvider: Schema Configure", () => {
render(
-
+
} />
@@ -543,7 +543,7 @@ describe("FullStoryProvider: Meta Configure", () => {
render(
-
+
} />
@@ -562,7 +562,7 @@ describe("FullStoryProvider: Meta Configure", () => {
render(
-
+
} />
@@ -870,7 +870,7 @@ describe("FullStoryProvider: None Configure", () => {
render(
-
+
} />
@@ -889,7 +889,7 @@ describe("FullStoryProvider: None Configure", () => {
render(
-
+
} />
@@ -910,7 +910,7 @@ describe("FullStoryProvider: None Configure", () => {
render(
-
+
} />
@@ -929,7 +929,7 @@ describe("FullStoryProvider: None Configure", () => {
render(
-
+
} />
@@ -967,7 +967,7 @@ describe("FullStoryProvider: None Configure", () => {
// setup
render(
-
+
} />
} />
@@ -1023,7 +1023,7 @@ describe("FullStoryProvider: Multi Default Rule Configure", () => {
render(
-
+
} />
@@ -1043,7 +1043,7 @@ describe("FullStoryProvider: Multi Default Rule Configure", () => {
render(
-
+
} />
@@ -1081,7 +1081,7 @@ describe("FullStoryProvider: Multi Default Rule Configure", () => {
render(
-
+
} />
@@ -1149,7 +1149,7 @@ describe("FullStoryProvider: Path Rule Configure", () => {
render(
-
+
} />
@@ -1169,7 +1169,7 @@ describe("FullStoryProvider: Path Rule Configure", () => {
render(
-
+
} />
@@ -1195,7 +1195,7 @@ describe("FullStoryProvider: Path Rule Configure", () => {
render(
-
+
} />
@@ -1221,7 +1221,7 @@ describe("FullStoryProvider: Path Rule Configure", () => {
render(
-
+
} />