-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16567a5
commit 209feae
Showing
12 changed files
with
201 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "plugin-graphql-test-children-query", | ||
"dependencies": { | ||
"lit-element": "^2.4.0" | ||
"lit": "^2.0.0-rc.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/plugin-graphql/test/cases/query-children/src/components/posts-list.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/plugin-graphql/test/cases/query-custom-frontmatter/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "plugin-graphql-test-query-custom-frontmatter", | ||
"dependencies": { | ||
"lit-element": "^2.4.0" | ||
"lit": "^2.0.0-rc.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,41 +57,76 @@ describe('Build Greenwood With: ', function() { | |
`${process.cwd()}/packages/plugin-graphql/src/queries/*.gql`, | ||
`${outputPath}/node_modules/@greenwood/plugin-graphql/src/queries/` | ||
); | ||
const litElementLibs = await getDependencyFiles( | ||
`${process.cwd()}/node_modules/lit-element/lib/*.js`, | ||
`${outputPath}/node_modules/lit-element/lib/` | ||
const lit = await getDependencyFiles( | ||
`${process.cwd()}/node_modules/lit/*.js`, | ||
`${outputPath}/node_modules/lit/` | ||
); | ||
const litDecorators = await getDependencyFiles( | ||
`${process.cwd()}/node_modules/lit/decorators/*.js`, | ||
`${outputPath}/node_modules/lit/decorators/` | ||
); | ||
const litDirectives = await getDependencyFiles( | ||
`${process.cwd()}/node_modules/lit/directives/*.js`, | ||
`${outputPath}/node_modules/lit/directives/` | ||
); | ||
const litPackageJson = await getDependencyFiles( | ||
`${process.cwd()}/node_modules/lit/package.json`, | ||
`${outputPath}/node_modules/lit/` | ||
); | ||
const litElement = await getDependencyFiles( | ||
`${process.cwd()}/node_modules/lit-element/lit-element.js`, | ||
`${process.cwd()}/node_modules/lit-element/*.js`, | ||
`${outputPath}/node_modules/lit-element/` | ||
); | ||
const litElementPackageJson = await getDependencyFiles( | ||
`${process.cwd()}/node_modules/lit-element/package.json`, | ||
`${outputPath}/node_modules/lit-element/` | ||
); | ||
const litElementDecorators = await getDependencyFiles( | ||
`${process.cwd()}/node_modules/lit-element/decorators/*.js`, | ||
`${outputPath}/node_modules/lit-element/decorators/` | ||
); | ||
const litHtml = await getDependencyFiles( | ||
`${process.cwd()}/node_modules/lit-html/lit-html.js`, | ||
`${process.cwd()}/node_modules/lit-html/*.js`, | ||
`${outputPath}/node_modules/lit-html/` | ||
); | ||
const litHtmlPackageJson = await getDependencyFiles( | ||
`${process.cwd()}/node_modules/lit-html/package.json`, | ||
`${outputPath}/node_modules/lit-html/` | ||
); | ||
const litHtmlLibs = await getDependencyFiles( | ||
`${process.cwd()}/node_modules/lit-html/lib/*.js`, | ||
`${outputPath}/node_modules/lit-html/lib/` | ||
const litHtmlDirectives = await getDependencyFiles( | ||
`${process.cwd()}/node_modules/lit-html/directives/*.js`, | ||
`${outputPath}/node_modules/lit-html/directives/` | ||
); | ||
const litReactiveElement = await getDependencyFiles( | ||
`${process.cwd()}/node_modules/@lit/reactive-element/*.js`, | ||
`${outputPath}/node_modules/@lit/reactive-element/` | ||
); | ||
const litReactiveElementDecorators = await getDependencyFiles( | ||
`${process.cwd()}/node_modules/@lit/reactive-element/decorators/*.js`, | ||
`${outputPath}/node_modules/@lit/reactive-element/decorators/` | ||
); | ||
const litReactiveElementPackageJson = await getDependencyFiles( | ||
`${process.cwd()}/node_modules/@lit/reactive-element/package.json`, | ||
`${outputPath}/node_modules/@lit/reactive-element/` | ||
); | ||
|
||
await runner.setup(outputPath, [ | ||
...getSetupFiles(outputPath), | ||
...greenwoodGraphqlCoreLibs, | ||
...greenwoodGraphqlQueryLibs, | ||
...litElement, | ||
...lit, | ||
...litPackageJson, | ||
...litDirectives, | ||
...litDecorators, | ||
...litElementPackageJson, | ||
...litElementLibs, | ||
...litHtml, | ||
...litElement, | ||
...litElementDecorators, | ||
...litHtmlPackageJson, | ||
...litHtmlLibs | ||
...litHtml, | ||
...litHtmlDirectives, | ||
...litReactiveElement, | ||
...litReactiveElementDecorators, | ||
...litReactiveElementPackageJson | ||
]); | ||
await runner.runCommand(cliPath, 'build'); | ||
}); | ||
|
@@ -160,11 +195,12 @@ describe('Build Greenwood With: ', function() { | |
expect(authors.length).to.be.equal(2); | ||
expect(dates.length).to.be.equal(2); | ||
|
||
expect(authors[0].innerHTML).to.be.contain('Written By: [email protected]'); | ||
expect(dates[0].innerHTML).to.be.contain('On: 07.08.2020'); | ||
// account for dynamic hydration markers added by lit | ||
expect(authors[0].innerHTML).to.match(/Written By:(.*.)[email protected]/); | ||
expect(dates[0].innerHTML).to.match(/On:(.*.)07.08.2020/); | ||
|
||
expect(authors[1].innerHTML).to.be.contain('Written By: [email protected]'); | ||
expect(dates[1].innerHTML).to.be.contain('On: 07.09.2020'); | ||
expect(authors[1].innerHTML).to.match(/Written By:(.*.)[email protected]/); | ||
expect(dates[1].innerHTML).to.match(/On:(.*.)07.09.2020/); | ||
}); | ||
}); | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
packages/plugin-graphql/test/cases/query-custom-frontmatter/src/components/posts-list.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "plugin-graphql-test-graph-query", | ||
"dependencies": { | ||
"lit-element": "^2.4.0" | ||
"lit": "^2.0.0-rc.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/plugin-graphql/test/cases/query-graph/src/components/debug-output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "plugin-graphql-test-menu-query", | ||
"dependencies": { | ||
"lit-element": "^2.4.0" | ||
"lit": "^2.0.0-rc.2" | ||
} | ||
} |
Oops, something went wrong.