Skip to content

Commit

Permalink
Merge pull request #1772 from blackflux/dev
Browse files Browse the repository at this point in the history
[Gally]: master <- dev
  • Loading branch information
simlu authored Aug 11, 2023
2 parents 211539f + 27ceabd commit 9cc57c3
Show file tree
Hide file tree
Showing 12 changed files with 234 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .structignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ test/projects/assorted/@sls-api/test/hangler-gen.spec.js
test/projects/assorted/@sls-queue/test/queue/queue.spec.js
test/projects/assorted/@sls-closedsource/test/0-sls-cf-stack.spec.js
test/projects/assorted/@sls-closedsource-react/test/0-sls-cf-stack.spec.js
test/projects/assorted/@sls-closedsource/test/4-deps.spec.js
test/projects/assorted/@sls-closedsource/test/7-sls-tags.spec.js
test/projects/assorted/@sls-closedsource-react/test/4-deps.spec.js
test/projects/assorted/@sls-closedsource-react/test/7-sls-tags.spec.js
test/projects/assorted/@sls-closedsource-dynamodb/test/0-sls-cf-stack.spec.js
test/projects/assorted/@sls-closedsource-dynamodb/test/4-deps.spec.js
test/projects/assorted/@sls-closedsource-dynamodb/test/7-sls-tags.spec.js
test/projects/assorted/@sls-closedsource-dynamodb/test/8-sls-dynamodb-cfg.spec.js
test/projects/assorted/@sls-closedsource-dynamodb/test/9-sls-dynamodb-local.spec.js
Expand Down
39 changes: 39 additions & 0 deletions src/plugin/docs/assorted/@sls-closedsource-dynamodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlesstest-sls-cf-stack">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlesstest-sls-cf-stack">`serverless/test-sls-cf-stack`</a>
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlesstest-lib-test">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlesstest-lib-test">`serverless/test-lib-test`</a>
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlesstest-dynamodb-dy">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlesstest-dynamodb-dy">`serverless/test-dynamodb-dy`</a>
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlesstest-deps">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlesstest-deps">`serverless/test-deps`</a>
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlesssrc-dynamodb-dy">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlesssrc-dynamodb-dy">`serverless/src-dynamodb-dy`</a>
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlesssrc-core-aws">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlesssrc-core-aws">`serverless/src-core-aws`</a>
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlessserverless-pkg">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlessserverless-pkg">`serverless/serverless-pkg`</a>
Expand Down Expand Up @@ -113,6 +114,7 @@ Manage various configuration files for serverless project with the option of run
<code>│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-srcdynamodbdyjs">dy.js</a></code><br/>
<code>└─&nbsp;test</code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test0-sls-cf-stackspecjs">0-sls-cf-stack.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test4-depsspecjs">4-deps.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test7-sls-tagsspecjs">7-sls-tags.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test8-sls-dynamodb-cfgspecjs">8-sls-dynamodb-cfg.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test9-sls-dynamodb-localspecjs">9-sls-dynamodb-local.spec.js</a></code><br/>
Expand Down Expand Up @@ -415,6 +417,7 @@ Manage serverless configuration for deployment to AWS.
<code>│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-srcdynamodbdyjs">dy.js</a></code><br/>
<code>└─&nbsp;test</code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test0-sls-cf-stackspecjs">0-sls-cf-stack.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test4-depsspecjs">4-deps.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test7-sls-tagsspecjs">7-sls-tags.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test8-sls-dynamodb-cfgspecjs">8-sls-dynamodb-cfg.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test9-sls-dynamodb-localspecjs">9-sls-dynamodb-local.spec.js</a></code><br/>
Expand Down Expand Up @@ -661,6 +664,36 @@ _Updating <a href="#blackfluxrobo-config-plugin-target-ref-testdynamodbdyspecjs"
</tbody>
</table>

### :clipboard: <a name="blackfluxrobo-config-plugin-task-ref-serverlesstest-deps">serverless/test-deps</a> (<a href="#blackfluxrobo-config-plugin-task-idx-ref-serverlesstest-deps">`index`</a>)

_Updating <a href="#blackfluxrobo-config-plugin-target-ref-test4-depsspecjs">test/4-deps.spec.js</a> using <a href="#blackfluxrobo-config-plugin-strat-ref-overwrite">overwrite</a>._

- Test to enforce resources tagging.

<table>
<tbody>
<tr>
<th>Targets</th>
<th>Requires</th>
</tr>
<tr>
<td align="left" valign="top">
<ul>
<code>project</code><br/>
<code>└─&nbsp;test</code><br/>
<code>&nbsp;&nbsp;&nbsp;└─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test4-depsspecjs">4-deps.spec.js</a></code><br/>
</ul>
</td>
<td align="left" valign="top">
<ul>
<li><a href="#blackfluxrobo-config-plugin-req-ref-serverless">serverless</a></li>
<li><a href="#blackfluxrobo-config-plugin-req-ref-aws">aws</a></li>
</ul>
</td>
</tr>
</tbody>
</table>

### :clipboard: <a name="blackfluxrobo-config-plugin-task-ref-serverlesssrc-dynamodb-dy">serverless/src-dynamodb-dy</a> (<a href="#blackfluxrobo-config-plugin-task-idx-ref-serverlesssrc-dynamodb-dy">`index`</a>)

_Updating <a href="#blackfluxrobo-config-plugin-target-ref-srcdynamodbdyjs">src/dynamodb/dy.js</a> using <a href="#blackfluxrobo-config-plugin-strat-ref-create-only">create-only</a>._
Expand Down Expand Up @@ -2319,6 +2352,12 @@ Execute all configured js-gardener tasks.

*Generator for src/dynamodb/dy.js*

### <a name="blackfluxrobo-config-plugin-target-ref-test4-depsspecjs">test/4-deps.spec.js</a>

:small_blue_diamond: `other`

*Test to enforce dependency consistency.*

### <a name="blackfluxrobo-config-plugin-target-ref-srcdynamodbdyjs">src/dynamodb/dy.js</a>

:small_red_triangle: <a href="#blackfluxrobo-config-plugin-req-ref-aws">aws</a>
Expand Down
39 changes: 39 additions & 0 deletions src/plugin/docs/assorted/@sls-closedsource.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlesstest-sls-cf-stack-routes">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlesstest-sls-cf-stack-routes">`serverless/test-sls-cf-stack-routes`</a>
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlesstest-sls-cf-stack">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlesstest-sls-cf-stack">`serverless/test-sls-cf-stack`</a>
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlesstest-lib-test">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlesstest-lib-test">`serverless/test-lib-test`</a>
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlesstest-deps">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlesstest-deps">`serverless/test-deps`</a>
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlesssrc-core-aws">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlesssrc-core-aws">`serverless/src-core-aws`</a>
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlessserverless-pkg">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlessserverless-pkg">`serverless/serverless-pkg`</a>
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlessserverless-data">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlessserverless-data">`serverless/serverless-data`</a>
Expand Down Expand Up @@ -107,6 +108,7 @@ Manage various configuration files for serverless project.
<code>│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-srccoreawsjs">aws.js</a></code><br/>
<code>└─&nbsp;test</code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test0-sls-cf-stackspecjs">0-sls-cf-stack.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test4-depsspecjs">4-deps.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test7-sls-tagsspecjs">7-sls-tags.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-testhotjs">hot.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-testlib-testsh">lib-test.sh</a></code><br/>
Expand Down Expand Up @@ -401,6 +403,7 @@ Manage serverless configuration for deployment to AWS.
<code>│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-srccoreawsjs">aws.js</a></code><br/>
<code>└─&nbsp;test</code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test0-sls-cf-stackspecjs">0-sls-cf-stack.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test4-depsspecjs">4-deps.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test7-sls-tagsspecjs">7-sls-tags.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-testlib-testsh">lib-test.sh</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;└─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-testsls-cf-stack-routesyml">sls-cf-stack-routes.yml</a></code><br/>
Expand Down Expand Up @@ -553,6 +556,36 @@ _Updating <a href="#blackfluxrobo-config-plugin-target-ref-testlib-testsh">test/
</tbody>
</table>

### :clipboard: <a name="blackfluxrobo-config-plugin-task-ref-serverlesstest-deps">serverless/test-deps</a> (<a href="#blackfluxrobo-config-plugin-task-idx-ref-serverlesstest-deps">`index`</a>)

_Updating <a href="#blackfluxrobo-config-plugin-target-ref-test4-depsspecjs">test/4-deps.spec.js</a> using <a href="#blackfluxrobo-config-plugin-strat-ref-overwrite">overwrite</a>._

- Test to enforce resources tagging.

<table>
<tbody>
<tr>
<th>Targets</th>
<th>Requires</th>
</tr>
<tr>
<td align="left" valign="top">
<ul>
<code>project</code><br/>
<code>└─&nbsp;test</code><br/>
<code>&nbsp;&nbsp;&nbsp;└─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test4-depsspecjs">4-deps.spec.js</a></code><br/>
</ul>
</td>
<td align="left" valign="top">
<ul>
<li><a href="#blackfluxrobo-config-plugin-req-ref-serverless">serverless</a></li>
<li><a href="#blackfluxrobo-config-plugin-req-ref-aws">aws</a></li>
</ul>
</td>
</tr>
</tbody>
</table>

### :clipboard: <a name="blackfluxrobo-config-plugin-task-ref-serverlesssrc-core-aws">serverless/src-core-aws</a> (<a href="#blackfluxrobo-config-plugin-task-idx-ref-serverlesssrc-core-aws">`index`</a>)

_Updating <a href="#blackfluxrobo-config-plugin-target-ref-srccoreawsjs">src/core/aws.js</a> using <a href="#blackfluxrobo-config-plugin-strat-ref-create-only">create-only</a>._
Expand Down Expand Up @@ -2135,6 +2168,12 @@ Execute all configured js-gardener tasks.

*Script for doing integration test against lib folder.*

### <a name="blackfluxrobo-config-plugin-target-ref-test4-depsspecjs">test/4-deps.spec.js</a>

:small_blue_diamond: `other`

*Test to enforce dependency consistency.*

### <a name="blackfluxrobo-config-plugin-target-ref-srccoreawsjs">src/core/aws.js</a>

:small_red_triangle: <a href="#blackfluxrobo-config-plugin-req-ref-aws-sdk-wrap">aws-sdk-wrap</a>, <a href="#blackfluxrobo-config-plugin-req-ref-aws">aws</a>
Expand Down
7 changes: 7 additions & 0 deletions src/plugin/targets/test/4-deps.spec.js.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"description": "Test to enforce dependency consistency.",
"details": [],
"formats": ["other"],
"requires": [],
"website": null
}
1 change: 1 addition & 0 deletions src/plugin/tasks/serverless/#two-stack-dynamodb.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"tasks": [
"test-sls-cf-stack",
"test-sls-tags",
"test-deps",
"test-sls-cf-stack-routes",
"serverless-base-resolver",
"serverless-base-resolver-js",
Expand Down
1 change: 1 addition & 0 deletions src/plugin/tasks/serverless/#two-stack.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"tasks": [
"test-sls-cf-stack",
"test-sls-tags",
"test-deps",
"test-sls-cf-stack-routes",
"serverless-base-resolver",
"serverless-base-resolver-js",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import path from 'path';
import fs from 'smart-fs';
import { describe } from 'node-tdd';
import { expect } from 'chai';
import * as lockfile from '@yarnpkg/lockfile';

const root = path.join(fs.dirname(import.meta.url), '..');

describe('Testing dependencies', () => {
it('Testing lru-cache-ext version unique', () => {
const lockUri = fs.readFileSync(path.join(root, 'yarn.lock'), 'utf8');
const lockContent = lockfile.default.parse(lockUri);
const keys = Object.keys(lockContent.object);
const versions = keys.filter((e) => e.startsWith('lru-cache-ext@'));
expect(versions).to.have.length(1);
});
});
15 changes: 15 additions & 0 deletions src/plugin/tasks/serverless/test-deps.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"target": "test/4-deps.spec.js",
"format": "txt",
"strategy": "overwrite",
"snippets": [
"serverless/test/4-deps.spec.js"
],
"requires": [
"serverless",
"aws"
],
"purpose": [
"Test to enforce resources tagging."
]
}
39 changes: 39 additions & 0 deletions test/projects/assorted/@sls-closedsource-dynamodb/CONFDOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlesstest-sls-cf-stack">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlesstest-sls-cf-stack">`serverless/test-sls-cf-stack`</a>
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlesstest-lib-test">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlesstest-lib-test">`serverless/test-lib-test`</a>
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlesstest-dynamodb-dy">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlesstest-dynamodb-dy">`serverless/test-dynamodb-dy`</a>
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlesstest-deps">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlesstest-deps">`serverless/test-deps`</a>
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlesssrc-dynamodb-dy">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlesssrc-dynamodb-dy">`serverless/src-dynamodb-dy`</a>
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlesssrc-core-aws">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlesssrc-core-aws">`serverless/src-core-aws`</a>
- <a name="blackfluxrobo-config-plugin-task-idx-ref-serverlessserverless-pkg">:clipboard:</a> <a href="#blackfluxrobo-config-plugin-task-ref-serverlessserverless-pkg">`serverless/serverless-pkg`</a>
Expand Down Expand Up @@ -115,6 +116,7 @@ Manage various configuration files for serverless project with the option of run
<code>│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-srcdynamodbdyjs">dy.js</a></code><br/>
<code>└─&nbsp;test</code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test0-sls-cf-stackspecjs">0-sls-cf-stack.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test4-depsspecjs">4-deps.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test7-sls-tagsspecjs">7-sls-tags.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test8-sls-dynamodb-cfgspecjs">8-sls-dynamodb-cfg.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test9-sls-dynamodb-localspecjs">9-sls-dynamodb-local.spec.js</a></code><br/>
Expand Down Expand Up @@ -417,6 +419,7 @@ Manage serverless configuration for deployment to AWS.
<code>│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-srcdynamodbdyjs">dy.js</a></code><br/>
<code>└─&nbsp;test</code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test0-sls-cf-stackspecjs">0-sls-cf-stack.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test4-depsspecjs">4-deps.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test7-sls-tagsspecjs">7-sls-tags.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test8-sls-dynamodb-cfgspecjs">8-sls-dynamodb-cfg.spec.js</a></code><br/>
<code>&nbsp;&nbsp;&nbsp;├─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test9-sls-dynamodb-localspecjs">9-sls-dynamodb-local.spec.js</a></code><br/>
Expand Down Expand Up @@ -663,6 +666,36 @@ _Updating <a href="#blackfluxrobo-config-plugin-target-ref-testdynamodbdyspecjs"
</tbody>
</table>

##### :clipboard: <a name="blackfluxrobo-config-plugin-task-ref-serverlesstest-deps">serverless/test-deps</a> (<a href="#blackfluxrobo-config-plugin-task-idx-ref-serverlesstest-deps">`index`</a>)

_Updating <a href="#blackfluxrobo-config-plugin-target-ref-test4-depsspecjs">test/4-deps.spec.js</a> using <a href="#blackfluxrobo-config-plugin-strat-ref-overwrite">overwrite</a>._

- Test to enforce resources tagging.

<table>
<tbody>
<tr>
<th>Targets</th>
<th>Requires</th>
</tr>
<tr>
<td align="left" valign="top">
<ul>
<code>project</code><br/>
<code>└─&nbsp;test</code><br/>
<code>&nbsp;&nbsp;&nbsp;└─&nbsp;<a href="#blackfluxrobo-config-plugin-target-ref-test4-depsspecjs">4-deps.spec.js</a></code><br/>
</ul>
</td>
<td align="left" valign="top">
<ul>
<li><a href="#blackfluxrobo-config-plugin-req-ref-serverless">serverless</a></li>
<li><a href="#blackfluxrobo-config-plugin-req-ref-aws">aws</a></li>
</ul>
</td>
</tr>
</tbody>
</table>

##### :clipboard: <a name="blackfluxrobo-config-plugin-task-ref-serverlesssrc-dynamodb-dy">serverless/src-dynamodb-dy</a> (<a href="#blackfluxrobo-config-plugin-task-idx-ref-serverlesssrc-dynamodb-dy">`index`</a>)

_Updating <a href="#blackfluxrobo-config-plugin-target-ref-srcdynamodbdyjs">src/dynamodb/dy.js</a> using <a href="#blackfluxrobo-config-plugin-strat-ref-create-only">create-only</a>._
Expand Down Expand Up @@ -2321,6 +2354,12 @@ Execute all configured js-gardener tasks.

*Generator for src/dynamodb/dy.js*

### <a name="blackfluxrobo-config-plugin-target-ref-test4-depsspecjs">test/4-deps.spec.js</a>

:small_blue_diamond: `other`

*Test to enforce dependency consistency.*

### <a name="blackfluxrobo-config-plugin-target-ref-srcdynamodbdyjs">src/dynamodb/dy.js</a>

:small_red_triangle: <a href="#blackfluxrobo-config-plugin-req-ref-aws">aws</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import path from 'path';
import fs from 'smart-fs';
import { describe } from 'node-tdd';
import { expect } from 'chai';
import * as lockfile from '@yarnpkg/lockfile';

const root = path.join(fs.dirname(import.meta.url), '..');

describe('Testing dependencies', () => {
it('Testing lru-cache-ext version unique', () => {
const lockUri = fs.readFileSync(path.join(root, 'yarn.lock'), 'utf8');
const lockContent = lockfile.default.parse(lockUri);
const keys = Object.keys(lockContent.object);
const versions = keys.filter((e) => e.startsWith('lru-cache-ext@'));
expect(versions).to.have.length(1);
});
});
Loading

0 comments on commit 9cc57c3

Please sign in to comment.