diff --git a/package.json b/package.json index e7036b7a..bb884af2 100644 --- a/package.json +++ b/package.json @@ -44,12 +44,8 @@ "@architect/eslint-config": "2.1.1", "@architect/req-res-fixtures": "git+https://github.com/architect/req-res-fixtures.git", "@architect/sandbox": "^5.8.3", - "@aws-sdk/client-dynamodb": "^3.319.0", - "@aws-sdk/lib-dynamodb": "^3.319.0", - "@smithy/node-http-handler": "^2.1.7", "@types/aws-lambda": "^8.10.119", "@types/node": "18", - "aws-sdk": "^2.1364.0", "cross-env": "~7.0.3", "eslint": "^8.51.0", "nyc": "~15.1.0", diff --git a/test/unit/src/tables/factory-test.js b/test/unit/src/tables/factory-test.js index c990c8a2..5b3713f8 100644 --- a/test/unit/src/tables/factory-test.js +++ b/test/unit/src/tables/factory-test.js @@ -1,10 +1,15 @@ let { join } = require('path') let test = require('tape') -let factory = require('../../../../src/tables/factory') +let proxyquire = require('proxyquire') let sandbox = require('@architect/sandbox') let cwd = process.cwd() let mock = join(cwd, 'test', 'mock', 'project') +let noop = () => {} +let factory = proxyquire('../../../../src/tables/factory', { + './legacy': () => ({ db: noop, doc: noop }) +}) + let services = { tables: { hi: 'there' } } test('Set up env', async t => {