diff --git a/index.js b/index.js index 8d11787..ad5584d 100644 --- a/index.js +++ b/index.js @@ -3,4 +3,8 @@ export * from './ipfs_model_manager_js/ipfs_model_manager.js'; export * from './ipfs_model_manager_js/s3_kit.js'; export * from './ipfs_model_manager_js/test_fio.js'; export { ipfsModelManagerJs } from './ipfs_model_manager_js/ipfs_model_manager.js'; -export { ipfsModelManagerJs as default } from './ipfs_model_manager_js/ipfs_model_manager.js'; \ No newline at end of file +export { ipfsModelManagerJs as default } from './ipfs_model_manager_js/ipfs_model_manager.js'; +export * from './test/test.js' +export { testIpfsModelManager } from './test/test.js' +const test = new testIpfsModelManager(); +export { test } \ No newline at end of file diff --git a/package.json b/package.json index 4607431..2d28796 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ipfs_model_manager_js", - "version": "1.0.19", + "version": "1.0.21", "description": "This is a model manager and wrapper for huggingface, and it maintains an index of models from collections of models store retrieved through local/https/s3/ipfs/orbitdb, then maintains a state of which what models are currently accesible, and it will choose what files should be cached through local/s3/ipfs/ based on configuration settings.", "type": "module", "main": "index.js", diff --git a/tests/test.js b/tests/test.js index b3d8870..c833aea 100644 --- a/tests/test.js +++ b/tests/test.js @@ -8,6 +8,9 @@ import { ipfsModelManagerJs } from 'ipfs_model_manager_js'; import { requireConfig } from "../config/config.js"; import fs from "fs"; import path from "path"; +import os from "os"; +import { exec, execSync } from "child_process"; +import { t } from "tar"; export default class testIpfsModelManager { constructor(resources = {}, metadata = {}) {