소스 검색

chore(tests)

Ryan Chandler 5 년 전
부모
커밋
cb5e7ccd65
7개의 변경된 파일973개의 추가작업 그리고 10개의 파일을 삭제
  1. 13 0
      babel.config.js
  2. 0 0
      dist/spruce.js.map
  3. 0 0
      dist/spruce.module.js.map
  4. 0 0
      dist/spruce.umd.js.map
  5. 9 1
      package.json
  6. 0 1
      src/index.js
  7. 951 8
      yarn.lock

+ 13 - 0
babel.config.js

@@ -0,0 +1,13 @@
+module.exports = {
+    presets: [
+        [
+            '@babel/preset-env',
+            {
+                targets: {
+                    node: 'current',
+                    edge: '18'
+                },
+            },
+        ],
+    ],
+};

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/spruce.js.map


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/spruce.module.js.map


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/spruce.umd.js.map


+ 9 - 1
package.json

@@ -14,9 +14,17 @@
     "module": "dist/foo.module.js",
     "scripts": {
         "build": "microbundle",
-        "watch": "microbundle watch"
+        "watch": "microbundle watch",
+        "test": "npx jest"
     },
     "devDependencies": {
+        "@babel/preset-env": "^7.9.5",
+        "@testing-library/dom": "^7.2.2",
+        "@testing-library/jest-dom": "^5.5.0",
+        "alpinejs": "^2.3.1",
+        "ava": "^3.7.1",
+        "jest": "^25.4.0",
+        "jsdom-simulant": "^1.1.2",
         "microbundle": "^0.11.0",
         "observable-membrane": "^0.26.1"
     }

+ 0 - 1
src/index.js

@@ -2,7 +2,6 @@ import { domReady, buildInitExpression } from './utils'
 import { createObservable } from './observable'
 
 const Spruce = {
-
     stores: {},
 
     subscribers: [],

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 951 - 8
yarn.lock


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.