Skip to content

Update tests for dependencies #285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
// Karma configuration

module.exports = function (config) {

process.on('infrastructure_error', (error) => {
/* @aws-sdk/karma-credential-loader get credential
* as configured by the AWS SDK.
* These credentials are used to test KMS integration
* with the Encryption SDK.
* If they do not exist, then karma will exit with an `UnhandledRejection`.
* The following will log errors link this,
* but still let the karma-server shut down.
*/
console.error('infrastructure_error', error);
})

config.set({
basePath: '',
frameworks: ['mocha', 'chai'],
Expand All @@ -25,10 +38,9 @@ module.exports = function (config) {
{
loader: 'ts-loader',
options: {
configFile: 'tsconfig.module.json',
compilerOptions: {
sourceRoot: 'modules/'
}
logInfoToStdOut: true,
projectReferences: true,
configFile: `${__dirname}/tsconfig.module.json`
}
}
],
Expand Down
191 changes: 0 additions & 191 deletions modules/cache-material/package-lock.json

This file was deleted.

2 changes: 1 addition & 1 deletion modules/cache-material/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@aws-crypto/serialize": "file:../serialize",
"@types/lru-cache": "^5.1.0",
"lru-cache": "^5.1.1",
"tslib": "^1.9.3"
"tslib": "^1.11.1"
},
"sideEffects": false,
"main": "./build/main/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
/* eslint-env mocha */

import { expect } from 'chai'
import 'mocha'
import { buildCryptographicMaterialsCacheKeyHelpers } from '../src/build_cryptographic_materials_cache_key_helpers'
import { encryptionContextVectors, encryptedDataKeyVectors, encryptCacheKeyVectors, decryptCacheKeyVectors } from './fixtures'
import { createHash } from 'crypto'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
/* eslint-env mocha */

import { expect } from 'chai'
import 'mocha'
import {
decorateProperties,
cacheEntryHasExceededLimits,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
/* eslint-env mocha */

import { expect } from 'chai'
import 'mocha'
import { getLocalCryptographicMaterialsCache } from '../src/get_local_cryptographic_materials_cache'
import {
NodeAlgorithmSuite,
Expand Down
1 change: 0 additions & 1 deletion modules/cache-material/test/portable_compare.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
/* eslint-env mocha */

import { expect } from 'chai'
import 'mocha'
import { compare } from '../src/portable_compare'

describe('compare', () => {
Expand Down
Loading