diff --git a/test/fixtures/three.graphql/build.js b/test/fixtures/three.graphql/build.js index 5b6530ce0e7a85..171c86a3b76f12 100644 --- a/test/fixtures/three.graphql/build.js +++ b/test/fixtures/three.graphql/build.js @@ -235,6 +235,7 @@ ready(() => { query: currentQuerySource || kDefaultQuery, fetcher: fetcher, variables: '', + response: '', onEditQuery: onEditQuery, onEditVariables: onEditVariables, }) diff --git a/test/fixtures/three.graphql/editor.js b/test/fixtures/three.graphql/editor.js index f3f8781ff966da..e0ae01b4319596 100644 --- a/test/fixtures/three.graphql/editor.js +++ b/test/fixtures/three.graphql/editor.js @@ -97,6 +97,7 @@ ready(() => { query: currentQuerySource || kDefaultQuery, fetcher: fetcher, variables: '', + response: '', onEditQuery: onEditQuery, onEditVariables: onEditVariables, }) diff --git a/test/fixtures/three.graphql/package-lock.json b/test/fixtures/three.graphql/package-lock.json index 3157a5903af0d8..8a239aa6e96a84 100644 --- a/test/fixtures/three.graphql/package-lock.json +++ b/test/fixtures/three.graphql/package-lock.json @@ -1,6 +1,6 @@ { "name": "three.graphql", - "version": "0.1.1", + "version": "0.1.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/test/fixtures/three.graphql/package.json b/test/fixtures/three.graphql/package.json index 85db33fd793714..823578859b4702 100644 --- a/test/fixtures/three.graphql/package.json +++ b/test/fixtures/three.graphql/package.json @@ -1,6 +1,6 @@ { "name": "three.graphql", - "version": "0.1.1", + "version": "0.1.2", "description": "Create & Query THREE objects with GraphQL", "author": "Chetabahana ", "developer": "Joseph Werle ", @@ -36,6 +36,8 @@ "scripts": { "preinstall": "bash scripts/preinstall.sh", "install": "bash scripts/install.sh", + "postinstall": "bash scripts/postinstall.sh", + "audit": "bash scripts/audit.sh", "build": "npm run build:editor", "editor": "npm run build:editor && budo", "build:editor": "bash scripts/build.sh", diff --git a/test/fixtures/three.graphql/scripts/audit.sh b/test/fixtures/three.graphql/scripts/audit.sh index 57b25365ee9317..ab5267b56ccccd 100644 --- a/test/fixtures/three.graphql/scripts/audit.sh +++ b/test/fixtures/three.graphql/scripts/audit.sh @@ -1,8 +1,10 @@ #!/bin/bash +# Run audit npm audit fix -echo -e "\n$hr\nFIX\n$hr" +echo -e "\n$hr\nRESOLVE VERSION\n$hr" + # Resolving: Cannot use GraphQLSchema "[object Object]" from another module or realm. # https://github.com/apollographql/react-apollo/issues/742#issuecomment-338366662 find node_modules -name graphql diff --git a/test/fixtures/three.graphql/scripts/build.sh b/test/fixtures/three.graphql/scripts/build.sh index 3f36cb997a1942..a739e0a484181b 100644 --- a/test/fixtures/three.graphql/scripts/build.sh +++ b/test/fixtures/three.graphql/scripts/build.sh @@ -4,5 +4,5 @@ browserify editor.js -t brfs -o build.js # Resolving: TypeError -SED_ERROR='throw new TypeError("Int cannot represent non-integer value: ".concat((0, _inspect.default)(value)))' +SED_ERROR='throw new TypeError("\([a-zA-Z0-9]*\) cannot represent non-integer value: ".concat((0, _inspect.default)(value)))' sed -i "s/$SED_ERROR/return null/g" build.js diff --git a/test/fixtures/three.graphql/scripts/install.sh b/test/fixtures/three.graphql/scripts/install.sh index 2a4a3ed6531789..e6c469d6292169 100644 --- a/test/fixtures/three.graphql/scripts/install.sh +++ b/test/fixtures/three.graphql/scripts/install.sh @@ -1,5 +1,6 @@ #!/bin/bash -# Copy graphiql.css to current directory -cp -f node_modules/graphiql/graphiql.css . +# ..reserve for code + +echo -e "\n$hr\nPOSTINSTALL\n$hr" diff --git a/test/fixtures/three.graphql/scripts/postinstall.sh b/test/fixtures/three.graphql/scripts/postinstall.sh new file mode 100644 index 00000000000000..2a4a3ed6531789 --- /dev/null +++ b/test/fixtures/three.graphql/scripts/postinstall.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +# Copy graphiql.css to current directory +cp -f node_modules/graphiql/graphiql.css . +