Skip to content
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

Feature/plat 1638 unit testing for tdf3 #50

Merged
merged 2 commits into from
May 5, 2022
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
15 changes: 15 additions & 0 deletions lib/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"plugins": [["@babel/plugin-transform-runtime", { "corejs": 3, "proposals": true }]],
"ignore": ["**/*.html"],
"presets": [
[
"@babel/preset-env",
{
"targets": {
"ie": "11"
}
}
],
"@babel/preset-typescript"
]
}
5 changes: 5 additions & 0 deletions lib/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extension": ["ts"],
"spec": ["tdf3/test/**/*.spec.+(js|ts)"],
"require": "tdf3/test/babel-register.js"
}
6 changes: 3 additions & 3 deletions lib/tdf3/.nycrc → lib/.nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
".ts"
],
"include": [
"src/**/*.js",
"src/**/*.ts"
"tdf3/src/**/*.js",
"tdf3/src/**/*.ts"
],
"exclude": [
"test/**/*.spec.*"
"tdf3/test/**/*.spec.*"
],
"require": [
"ts-node/register"
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@
"license-check": "license-checker --production --onlyAllow 'Apache-2.0; BSD; ISC; MIT' --excludePackages '[email protected]'",
"lint": "eslint ./{src,test}/**/*.ts",
"prepack": "npm run build",
"test": "npm run clean && tsc -p tsconfig-esm.json && web-test-runner",
"test": "npm run clean && tsc -p tsconfig-esm.json && web-test-runner && npm run test:tdf3",
"test:watch": "web-test-runner --watch",
"test:tdf3": "nyc mocha --require @babel/register --timeout 300000",
"watch": "(trap 'kill 0' SIGINT; npm run build && (npm run build:watch & npm run test -- --watch))"
},
"dependencies": {
Expand Down
4 changes: 0 additions & 4 deletions lib/tdf3/.audit-ci.json

This file was deleted.

22 changes: 0 additions & 22 deletions lib/tdf3/.babelrc

This file was deleted.

10 changes: 0 additions & 10 deletions lib/tdf3/.eslintrc

This file was deleted.

5 changes: 0 additions & 5 deletions lib/tdf3/.mocharc.json

This file was deleted.

1 change: 0 additions & 1 deletion lib/tdf3/.nvmrc

This file was deleted.

2 changes: 1 addition & 1 deletion lib/tdf3/index-web.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TDF, Client } from './src';
import { NanoTDFClient, NanoTDFDatasetClient, AuthProviders, version, clientType } from '../src/index';
import { FileClient } from '../fasade/FileClient';
import { FileClient } from '../facade/FileClient';

window.TDF = TDF;

Expand Down
2 changes: 1 addition & 1 deletion lib/tdf3/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TDF, Client } from './src';
import { NanoTDFClient, NanoTDFDatasetClient, AuthProviders, version, clientType } from '../src/index';
import { FileClient } from '../fasade/FileClient';
import { FileClient } from '../facade/FileClient';

export { TDF, Client, version, clientType, NanoTDFClient, NanoTDFDatasetClient, AuthProviders, FileClient };
export default { TDF, Client, version, clientType, NanoTDFClient, NanoTDFDatasetClient, AuthProviders, FileClient };
133 changes: 0 additions & 133 deletions lib/tdf3/karma.conf.cjs

This file was deleted.

61 changes: 0 additions & 61 deletions lib/tdf3/test/unit/chunkers.karma.ts

This file was deleted.

Loading